AlexWang-16 / webservice-phonelibrary

Google phone library web service
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Parse local numbers without country code #5

Open AlexWang-16 opened 6 years ago

AlexWang-16 commented 6 years ago

Please write unit test and functionality for this feature. As an added note, for this functionality to be considered complete, it must not cross over with its international formatted counter part. In this scenario, the international formatted version should prevail.

Example: If +1(416)111-2222 and (416)111-2222 both existed in the string/file, only +1(416)111-2222 should be returned and not both.