Skip to content

Commit

Permalink
Clarified card number description.
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybob committed Nov 14, 2011
1 parent 8851850 commit 75dfdb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -36,9 +36,9 @@ You find yourself trapped by a crippling but otherwise healthy fear of accidenta

Think you've got what it takes? Write a command line program that reads text from standard input, masks sequences of digits that look like credit card numbers, and writes the filtered text to standard output. For the purposes of this challenge, a credit card number:

- Is between 14 and 16 characters long, inclusive.
- Has between 14 and 16 digits, inclusive.
- Passes the Luhn check.
- Can contain any combination of `' '` or `'-'` characters.
- Can contain any number and combination of `' '` or `'-'` characters.

If a sequence of digits looks like a credit card number, replace each digit with an `'X'`. Any characters, including digits, may flank a credit card number. *Beware:* A valid 16-digit number can contain a valid 14 or 15-digit number. Your program must mask every digit.

Expand Down

0 comments on commit 75dfdb5

Please sign in to comment.