Skip to content

Commit 8aacb35

Browse files
authored
Merge pull request #3 from quacklabs/card_validation
removed comment line
2 parents 4bf4306 + c0e5af7 commit 8aacb35

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

SwiftValidator/Rules/CardExpiryRule.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public class CardExpiryRule: Rule {
3535
public func validate(_ value: String) -> Bool {
3636
let date = value.replacingOccurrences(of: "/", with: "")
3737
let Index = date.index(date.startIndex, offsetBy: 2)
38-
//let yearIndex = date.index(date.endIndex, offsetBy: -2)
3938
let Month = Int(date[..<Index])
4039
let Year = Int(date[Index...])
4140

0 commit comments

Comments
 (0)