|
|
@@ -15,7 +15,7 @@ final class LuhnValidator {
|
|
15
|
15
|
final List<Integer> computedDigits = new ArrayList<>();
|
|
16
|
16
|
|
|
17
|
17
|
for (int charIndex = 0; charIndex < reversedSanitizedCandidate.length(); charIndex++) {
|
|
18
|
|
- int inputDigit = Character.digit(sanitizedCandidate.charAt(charIndex), 10);
|
|
|
18
|
+ int inputDigit = Character.digit(reversedSanitizedCandidate.charAt(charIndex), 10);
|
|
19
|
19
|
|
|
20
|
20
|
/*
|
|
21
|
21
|
* Character.digit returns a negative int if the supplied character does not represent a digit with respect
|