Skip to content
Snippets Groups Projects
Commit 1ec53c97 authored by Eric Fikus's avatar Eric Fikus
Browse files

Fix PartialFormatter for regions that are not the main country

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.
parent 290b92af
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment