Open miguelgazela opened 1 month ago
If you are using the international code, you shouldn't send the region. The parsing logic contains a couple of fallbacks to always try to bring the right result in the end, so if you send the international code AND the region, when the parsing for the region fails, it will fallback to the international code.
Ok, so there's no way to enforce the region on the validation, right?
Right.
You can send the phone number without the international code.
New Issue Checklist
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.
Expected result
validPhoneNumber
should be falseActual result
validPhoneNumber
is true