-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notify uses the https://pypi.org/project/phonenumbers/ library to validate phone numbers. There's some scenarios where our regex permits a phone number that libphonenumber doesn't allow, causing notify to return an error when sending to that number. We've gone for rescuing this api error and adding a validation error to the the form. We may at some point, especially if we move message sending into a background job, want to investigate using a gem like https://github.com/daddyz/phonelib that will provide stricter phone number validations.
- Loading branch information
Showing
2 changed files
with
124 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters