Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Ensuring card length validates properly #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adamdunkley
Copy link

Otherwise this will validate early (for instance card number 4242 4242 4242 4242 will pass luhn validation at 4242 4242 4242 42

I have not updated the minified code as I don't know what minifier you use/don't know what settings are used.

This could probably have been done in a more generic way.

Otherwise this will validate early (for instance card number `4242 4242 4242 4242` will pass luhn validation at `4242 4242 4242 42`
Sorry I haven't minified as I am doing this within github as I am lazy, also don't know what minification settings you use
@8bitDesigner
Copy link

@adamdunkley - run npm install to install the minifier deps, and then grunt to minify build minified files.

@8bitDesigner
Copy link

This also builds the concatenated lib/angular-payments.js file.

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

Successfully merging this pull request may close these issues.

2 participants