Closed
Description
New Issue Checklist
- Updated PhoneNumberKit to the latest version
- Phone number formatted correctly on JavaScript version
- I searched for existing GitHub issues
- I am aware that this library is not responsible of adding/removing/changing phone number formats and any request should be done at libphonenumber repo
Steps to reproduce
I'm trying to validate a phone number provided for a specific region, but if I give it with the country code behind it ignores the region I'm passing it and considers it valid.
let validPhoneNumber = phoneNumberKit?.isValidPhoneNumber("+351916693528", withRegion: "US")
Expected result
validPhoneNumber
should be false
Actual result
validPhoneNumber
is true
Metadata
Metadata
Assignees
Labels
No labels