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

Provide the 'pt-BR' mobile phone locale option #772

Closed
jeduardocosta opened this issue Sep 17, 2019 · 2 comments · Fixed by #776
Closed

Provide the 'pt-BR' mobile phone locale option #772

jeduardocosta opened this issue Sep 17, 2019 · 2 comments · Fixed by #776

Comments

@jeduardocosta
Copy link
Contributor

The validator.js project already has the pt-BR mobile phone locale according to this file: isMobilePhone.js.

However, it is not possible to use this locale type since the express-validator library does not map this value in the MobilePhoneLocale options. I think that is necessary to update this file: options.ts

Expected behavior:

import { check } from 'express-validator';

check('attribute').isMobilePhone('pt-BR');
@gustavohenke
Copy link
Member

Thanks for spotting -- feel free to submit a PR yourself 😃

@lock
Copy link

lock bot commented Jan 24, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants