We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ef7c3 commit c0e5af7Copy full SHA for c0e5af7
SwiftValidator/Rules/CardExpiryRule.swift
@@ -35,7 +35,6 @@ public class CardExpiryRule: Rule {
35
public func validate(_ value: String) -> Bool {
36
let date = value.replacingOccurrences(of: "/", with: "")
37
let Index = date.index(date.startIndex, offsetBy: 2)
38
- //let yearIndex = date.index(date.endIndex, offsetBy: -2)
39
let Month = Int(date[..<Index])
40
let Year = Int(date[Index...])
41
0 commit comments