Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

avionbg
Copy link

@avionbg 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)

@coveralls
Copy link

coveralls commented Aug 28, 2016

Coverage Status

Coverage increased (+0.01%) to 99.113% when pulling 979b206 on avionbg:master into a8b3eba on chriso:master.

@chriso
Copy link
Collaborator

chriso commented Sep 1, 2016

Can you update the README and add some tests please?

@avionbg
Copy link
Author

avionbg commented Sep 1, 2016

Sure, I'll do it later today.

@chriso
Copy link
Collaborator

chriso commented Sep 1, 2016

Also, you'll need to update the ES6 files in src/lib instead of the compiled ES5 output in lib.

@chriso
Copy link
Collaborator

chriso commented Sep 1, 2016

.. 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.
@avionbg
Copy link
Author

avionbg commented Sep 1, 2016

Done, done, done and done :)

Hopefully everything is in place now 👍

@chriso
Copy link
Collaborator

chriso commented Sep 1, 2016

Close enough ;) I'll fix it up from here.

validator: 'isAlphanumeric',
args: ['sr-RS@latin'],
valid: [
'ŠAabčšđćž123',
Copy link
Collaborator

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.

@avionbg
Copy link
Author

avionbg commented Sep 1, 2016

Ouch .. fortunately I've added it to the test, fixed and committed ..

@chriso
Copy link
Collaborator

chriso commented Sep 1, 2016

The PR didn't update, but this was merged in 06dafd5. Thanks!

@chriso chriso closed this Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants