rust-phonenumber icon indicating copy to clipboard operation
rust-phonenumber copied to clipboard

[BUG] Proper E164 phone number parsed and formatted incorrectly when using wrong reference country

Open dabega opened this issue 4 years ago • 1 comments

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

dabega avatar Jan 18 '21 21:01 dabega

There is a format where country codes are not split maybe it got mixed up, I have to look into it.

rustonaut avatar Apr 11 '21 21:04 rustonaut