Skip to content
Snippets Groups Projects
  1. May 05, 2016
  2. Apr 29, 2016
  3. Apr 08, 2016
  4. Apr 07, 2016
    • Eric Fikus's avatar
      Fix PartialFormatter for regions that are not the main country · 1ec53c97
      Eric Fikus authored
      The metadata number formats are only specified for the country
      code's main country. Since PartialFormatter was using the metadata
      of the region code, a region that is not the code's main country
      would not have a format and PartialFormatter would leave the input
      unchanged.
      
      Fix by always using the main country for the region's country code.
      This matches the behavior of libphonenumber.
      1ec53c97
  5. Apr 05, 2016
  6. Mar 27, 2016
  7. Mar 25, 2016
    • Eric Fikus's avatar
      Fixes for PhoneNumber type determination · 3207eea8
      Eric Fikus authored
      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.
      3207eea8
  8. Mar 24, 2016
  9. Mar 23, 2016
  10. Mar 18, 2016
    • Eric Fikus's avatar
      Don't use possible number pattern to determine number type · 5e89a565
      Eric Fikus authored
      The phone number type determination should never use the possible
      number pattern, since that pattern is generic and not necessarily
      specific to the type in question.
      
      Update `isNumberMatchingDesc` to always use the national number pattern,
      not the possible number pattern.
      
      Also found and fixed a bug in RegularExpressions matchesEntirely while
      making this change.
      5e89a565
  11. Mar 17, 2016
  12. Mar 16, 2016
  13. Mar 13, 2016
  14. Mar 01, 2016
Loading