rust-phonenumber
rust-phonenumber copied to clipboard
[BUG] Proper E164 phone number parsed and formatted incorrectly when using wrong reference country
Behavior expected: obtaining same number when parsing (with any country) and formatting
Steps to reproduce: Parse international number with country other than country from the phone number
Tested with: Phone: +33142764978 Country: US Output after formatting to international format: +3342764978 Proper output: +33142764978
There is a format where country codes are not split maybe it got mixed up, I have to look into it.