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

Include pt-BR locale #552

Closed
rbaprado opened this issue Jul 8, 2016 · 2 comments
Closed

Include pt-BR locale #552

rbaprado opened this issue Jul 8, 2016 · 2 comments

Comments

@rbaprado
Copy link

rbaprado commented Jul 8, 2016

I would like to ask you include the "pt-BR" locale on isAlphaNumeric. The pt-PT can be used as a basis, as far as I know there are no differences.

@chriso
Copy link
Collaborator

chriso commented Jul 8, 2016

Happy to accept a PR. Have a look at https://github.com/chriso/validator.js/blob/master/lib/alpha.js to see how you can setup a locale alias:

alpha['pt-BR'] = alpha['pt-PT'];
alphanumeric['pt-BR'] = alphanumeric['pt-PT'];

@chriso
Copy link
Collaborator

chriso commented Sep 10, 2016

Added in 7d0bee5.

@chriso chriso closed this as completed Sep 10, 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

No branches or pull requests

2 participants