-
Notifications
You must be signed in to change notification settings - Fork 820
fix: expose locale support for isAlpha and IsAlphanumeric decorator #266
New issue
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
Comments
Looking at the validator source code. It has a set of regex for all locales which it compares it with to determine a valid alpha and alphanumeric while in case of here, it is just comparing using instanceof. I would be happy to code this feature |
It is simple fix. Feel free create PR. Check e.g. |
sure. I will work on it at my free time and create a pr |
added that on pr #406 |
@vlapo @NoNameProvided I have added the fix |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
isAlpha
andisAlphanumeric
are not useful in an non english country if they don't support the locals argument like validator.js does.This package is based on validator.js, so why are locals not supported?
This needs to be possible.
The text was updated successfully, but these errors were encountered: