whisperfish / rust-phonenumber

Library for parsing, formatting and validating international phone numbers.
Apache License 2.0
156 stars 55 forks source link

Phone Number Parse Fail #47

Open frogtd opened 2 years ago

frogtd commented 2 years ago

I tried to parse "+1 520-878-2491" but it fails at parsing with an invalid country code.

The Java and JavaScript libphonenumber do parse this correctly, and slight variations in this also parse correctly (e.g. "+1 520 878 2491" parses correctly).

direc85 commented 1 year ago

The library has been updated recently; does validation still fail for that number?

rubdos commented 1 year ago

I think this is basically a duplicate of #46; i.e., the national number format does not parse. I just tried to parse this on #52, and it still does not.