We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
case DE, EE, ES, FI, IT, KE, LT, MX, SA, UA = "\\d{5}" (lldb) po PostalCode.IT.rawValue "IT" (lldb) po PostalCode.UA.rawValue "\\d{5}"
The text was updated successfully, but these errors were encountered:
Hello @Neirys ,
Thanks for opening this issue. Can you be more specific on what is the expected result and what you are getting?
Sorry, something went wrong.
Hello @gkaimakas, PostalCode regex won't work correctly because PostalCode.IT.rawValue returns IT whereas it should returns "\\d{5}"
PostalCode.IT.rawValue
IT
"\\d{5}"
It happens here :
public static func isPostalCode(_ countryCode: PostalCode, nilResponse: Bool = false) -> Validator { return regex(countryCode.rawValue, nilResponse: nilResponse) }
a9c1776
Thank you @Neirys.
9.0.3 should fix this. It should be available on SPM and CocoaPods soon
No branches or pull requests
The text was updated successfully, but these errors were encountered: