Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(isCreditCard): create allCards dynamically (#2117)
* refactor(isCreditCard): create allCards dynamically get rid of the hardcoded allCards variable, which was a manual copy of the existing regExp for card provider. Replace it with a dynamically created array instead, which will make it easier to maintain, when new providers are added. * chore: code coverage improvement add "istanbull ignore else", similarly to how it is was done in: 9ee09a7
- Loading branch information