Uh oh!
There was an error while loading. Please reload this page.
feat: IR passport and identityCard, respect .gitignore files - #1595
Conversation
Codecov Report
@@ Coverage Diff @@## master #1595 +/- ##
=========================================
Coverage 100.00% 100.00% =========================================
Files 100 100 Lines 1843 1852 +9 =========================================
+ Hits 1843 1852 +9
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
tux-tn
left a comment
There was a problem hiding this comment.
Thank you for your PR @mhf-ir and sorry for the long review delay!
Your additions to isIdentityCard and isPassportNumber are good to go;
I'm not sure about adding isLuhn as a standalone validator, i don't see a big usage outside of credit card number validation (isCreditCard is already using it internally) and we should probably open this for discussion and wait for @ezkemboi , @profnandaa and the rest of the community feedback.
@tux-tn As i Said previously isLuhn one of the most important validation that you can see in npm many version (about 50 package) of that is implemented.
Forget about isCreditCard, it's Independent validation for Luhn algorithm that developers need it already. Dependency of isCreditCard is out of this PR scope. isCreditCard might be depend on Luhn or not, but could be different issue and PR.
|
mhf-ir
commented
Mar 17, 2021
After all I can remove isLuhn and send another issue and PR. Is that OK? @tux-tn |
tux-tn
commented
Mar 17, 2021
it's a good compromise, it will allow us to land directly IR Passport/IdentityCard validator and open discussion concerning the new |
tux-tn
commented
Mar 17, 2021
@mhf-ir feel free to open a new PR concerning |
profnandaa
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contrib! 🎉
IRfor isPassportNumberIRfor isIdentityCardChecklist