-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for PhoneNumber type determination
Several fixes for determining the type of a phone number: - Determine which metadata record to use based on the number's region, not the numeric country code. This fixes using the US metadata for all regions using country code 1, for example. - Adjust the order we check the type regular expressions. The fixed and mobile patterns are the most generic so they should be checked last. - Some fixes for regions with leading zeros - Fix regex matchesEntirely - add parentheses to the expression Also update testAllExampleNumbers to check that the expected type is computed for all example numbers in the metadata.
- Loading branch information
Eric Fikus
committed
Mar 25, 2016
1 parent
42b6090
commit 3207eea
Showing
5 changed files
with
107 additions
and
27 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
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
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