-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
- Added support for Serbian locale #575
Conversation
avionbg
commented
Aug 28, 2016
- Added Serbian Cyrillic / Latin characters and Serbian mobile phone format
- Updated Russian character regex (since it has case insensitive flag "/i" small letters are not needed)
- Surrounded Arabian property with the quotation marks (making it uniform to other regex's)
…rs and Serbian mobile numbers
Can you update the README and add some tests please? |
Sure, I'll do it later today. |
Also, you'll need to update the ES6 files in |
.. and, finally, rebase against master so that Travis gives you a green light 😄 |
…E file - Updated mobile test in order to support international calls (+381) - Updated ECMAS6 source files for the alpha/MobilePhone - Added tests for Serbian (Latin/Cyrillic) alpha/numeric strings and mobile phones.
Done, done, done and done :) Hopefully everything is in place now 👍 |
Close enough ;) I'll fix it up from here. |
validator: 'isAlphanumeric', | ||
args: ['sr-RS@latin'], | ||
valid: [ | ||
'ŠAabčšđćž123', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails because of the đ
character.
Ouch .. fortunately I've added it to the test, fixed and committed .. |
The PR didn't update, but this was merged in 06dafd5. Thanks! |