VueJs: 2.1.3
Vee-Validate:2.0.0-beta.22
alpha rule cannot validate cyrillic - when I enter russian letters it is always error state
You are correct, I don't think JavaScript has a reliable regex to achieve this, I will probably use Validator.js alpha method.
In the mean time you can create your own Cyrillic/Alpha validator and use it instead of alpha rules.
Added support in 400bd62 by default the alpha validators will try all locales if at least one passes then the field is considered valid, unless specified a specific locale as a parameter then that locale will be the only one checked.
eg:
<input name="name" v-validate="'alpha:ru'">
I based it on alpha.js from validator.js.
Community contributions maybe required for locales that have different character sets than the ones implemented.
Hello @logaretm ,
I have a question regarding validating Romanian special characters. I need to be able to validate all the current special characters from Cyrillic, German, French, Spanish etc. But also support Romanian. How would I go about doing that? I'm using version 2.2.8
I still want to use the alpha rules as they are, just add support for a few characters, specifically these: 膬 芒 卯 葯 葲.
Thanks so much for all the hard work :)
Most helpful comment
Added support in 400bd62 by default the alpha validators will try all locales if at least one passes then the field is considered valid, unless specified a specific locale as a parameter then that locale will be the only one checked.
eg:
I based it on alpha.js from validator.js.
Community contributions maybe required for locales that have different character sets than the ones implemented.