Uh oh!
There was an error while loading. Please reload this page.
Feat: enchance isCreditCard - #2008
Conversation
rubiin
left a comment
There was a problem hiding this comment.
hey there, instead of making a case specific validator, I would suggest something like isDebitcard or isCreditCard followed by provider as a param
hey @rubiin i have refactored the isCreditCard file, |
ad04c62 to
9bdd5ebCompareCodecov Report
@@ Coverage Diff @@## master #2008 +/- ##
=========================================
Coverage 100.00% 100.00% =========================================
Files 104 104 Lines 2203 2210 +7 Branches 477 481 +4 =========================================
+ Hits 2203 2210 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
rubiin
left a comment
There was a problem hiding this comment.
Looks good, lets wait for others
brianwhaley
commented
Jul 28, 2022
Thank you @rubiin. @profnandaa when you have an opportunity please do look at the PR. Much appreciated! |
brianwhaley
commented
Jul 28, 2022
apologies, thought this was approved and started cleaning up too soon. PR is reopened and waiting for approval from @profnandaa |
brianwhaley
commented
Jul 28, 2022
@rubiin - i did modify the existing isCreditCard file, and ensured it was backwards compatible. can you evaluate the diff? you will see you can still pass in a credit card number without the second param, and still get the same result. Thanks |
brianwhaley
commented
Jul 29, 2022
Hi @rubiin and @profnandaa - is there an additional person that can approve this PR? I would like to get it merged to main. Thank you! |
rubiin
commented
Jul 29, 2022
Lets wait for @profnandaa |
brianwhaley
commented
Aug 5, 2022
@profnandaa and @rubiin , is there an additional person that can approve this PR? I would like to get it merged to main. Thank you! |
brianwhaley
commented
Aug 10, 2022
@WikiRik would you be able to review this PR ? Thank you! |
WikiRik
commented
Aug 10, 2022
@brianwhaley I can, but my review won't get this merged faster unfortunately. We'll have to wait for @profnandaa Either way you can still use this specific commit in other projects, see this NPM docs |
Add regex validation for AmEx card