-
@iangow
This issue if for deciding how to handle cases with CUSIPs that have less than 9 characters, and to check the check digits. I have already made some progress on the latter, making a functi…
-
This includes lots of things:
- [ ] The whole checkout page
- [ ] We need to have a billing and shipping form - this would be good for a lesson on controlled/uncontrolled state we used to do in ou…
-
Credit card validation is one of those things where regex does not quite cut it. `joi.string().creditcard()` perhaps?
References:
http://en.wikipedia.org/wiki/Luhn_algorithm
http://www.iso.org/iso/i…
-
# Background
- String length restrictions are sometimes inevitable.
- It might be hard to use any character beyond Base-64 alphabet, like emoji.
- Out-of-body header fields, like version indicato…
-
the test suit suggest 059 and 59 are valid but they are not therefor its impossible to complete the exercise with the given test suit
-
It looks like the Luhn algorithm has the two approaches.
**The first approach is as follows:**
- From the rightmost digit, which is the check digit, and moving left, double the value of every se…
-
Feel free to file a new PR containing new data structures and algorithms questions in Python :)
-
A common validation for any payment system or e-commerce site is validating a debit / credit card number.
The validation would like _something_ like this and be defined in `pydantic.types`:
```p…
matin updated
5 years ago
-
The luhn algorithm in this script has a hardcoded value of `[\W_]` which is to be replaced before performing the Luhn check. If you change your scanning regular expression to something that includes a…
-
The program disregards the `-` and `+` sign in personal numbers (_personnummer_). It is used for determining what century the person was born in. It gets changed from a dash `-` to a plus sign `+` whe…