-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
When parsing out a String using libphonenumber.Parse() or libphonenumber.ParseAndKeepRawInput(), there are certain values that I would expect NumberParseException to be thrown, but instead the input is parsed "successfully" into a *PhoneNumber.
Here are some examples:
Example 1
number, err := libphonenumber.Parse("123@gmail.com", "US")
Results in:
number.CountryCode = 1
number.NationalNumber = 2346245266
Example 2
number, err := libphonenumber.Parse("email.133@gmail.com", "US")
Results in:
number.CountryCode = 1
number.NationalNumber = 3346245266
Example 3
number, err := libphonenumber.Parse("HEB17143428716", "US)
Results in
number.CountryCode = 1
number.NationalNumber = 7143428716
luisnquin
Metadata
Metadata
Assignees
Labels
No labels