fix: documentation incorrect for @IsPhoneNumber decorator in v0.13.0
Description
v0.13.0 throws error on code using "@IsPhoneNumber" when passing "ZZ" or null as parameter
Can you try passing undefined?
undefined works but is it same as "ZZ"
I have updated the documentation of the function in 1fa074d63078346238a6a7becf1f698b09a67350.
Undefined works but is it same as "ZZ"?
If you pass undefined or better doesn't provide the parameter, then the data must provide the international calling code (eg: +1), otherwise the validation will fail. So an example:
+36 30 111 1111- parsing this number will work because it's a valid phone number and the calling code is provided06 30 111 1111- parsing this number will fail, (the number is valid and in the local Hungarian format) but without providing the area code the lib won't recognise it06 30 111 1111withHU- parsing this will work because it is a valid local number and the region was provided so the lib will understand it as well
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.