Is there any CPF and CNPJ validator?
alvarolordelo opened this issue · comments
Álvaro Lordêlo commented
I'd like to have the CPF and CNPJ validator working on that package if it's possible, thanks!
Ben-Hur Santos Ott commented
Hi @alvarolordelo !
This package is only for masked values.
Custom validators for specific business rules are no longer part of the roadmap.
But this is a good idea for an external package! =)
Álvaro Lordêlo commented
Masks but don't validate?
It's a one time implementation
…On Fri, Nov 2, 2018, 18:20 Ben-hur Santos Ott ***@***.***> wrote:
Hi @alvarolordelo <https://github.com/alvarolordelo> !
This package is only for masked values.
Custom validators for specific business rules are no longer part of the
roadmap.
But this is a good idea for an external package! =)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlj0FTH5shel9j-ZVML2eoLeWWve7VRks5urLclgaJpZM4YMQVG>
.
Ben-Hur Santos Ott commented
Yes man, I understand.
But think: CPF and CNPJ are Brazilian rules and the purpose of this project is only to mask the input, not apply specific rules.
You can always create a custom package for it (that's one time implementation, like you said). You can create gists or (better) a external package.