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

Support phone number validation #10

Open
YZahringer opened this issue Jun 19, 2018 · 5 comments
Open

Support phone number validation #10

YZahringer opened this issue Jun 19, 2018 · 5 comments

Comments

@YZahringer
Copy link

Adding support for validating a phone number would be helpful.

@rsaenen
Copy link
Owner

rsaenen commented Jun 27, 2018

In order to have a phone validators, I would have to include phonelib.

If more people ask for this, I will do it but my first goal is having a lightweight package without third party or library.

@kktos
Copy link

kktos commented Feb 27, 2019

Ralf,
could you have a phonevalidator:

  • testing the existence of the library phonelib
  • if present, use it
  • if not, either do nothing or raise an error

Cheers mate ;)
/tm

@vaduveerappan
Copy link

Third the request. I tried moving to ngx-custom-validators as ng2-validator wasnt being updated. The switch was smooth, except for the phone validator. Will be very helpfull.

@juanreynolds
Copy link

Upgraded to Angular 9 and ng2-validator gave errors. Would be helpful to have it in as phone number is a common field type so it probably belongs in here.

@rsaenen
Copy link
Owner

rsaenen commented Feb 24, 2020

A branch with libphonenumber-js exists with the phone validation.

Unfortunately, it has an issue...
0668744565 (locale FR) is valid and should works but validation errors is not updated.

All TU passed btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants