Skip to content

Commit 86714d2

Browse files
authored
Merge pull request #4 from quacklabs/card_validation
fixed month not validating past November
2 parents 8aacb35 + fe3a1db commit 86714d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftValidator/Rules/CardExpiryRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class CardExpiryRule: Rule {
4444
let thisYearTwoDigits = Int(thisYear[thisYearLast2...])!
4545

4646

47-
return Month! < 12 && Year! >= thisYearTwoDigits
47+
return Month! <= 12 && Year! >= thisYearTwoDigits
4848

4949
}
5050

0 commit comments

Comments
 (0)