Skip to content

Commit 07cc072

Browse files
committed
Update MinLengthRule.swift
1 parent a2f8787 commit 07cc072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Validator/MinLengthRule.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MinLengthRule : Rule {
2222
}
2323

2424
func validate(value: String) -> Bool {
25-
if count(value) <= DEFAULT_MIN_LENGTH {
25+
if count(value) < DEFAULT_MIN_LENGTH {
2626
return false
2727
}
2828
return true
@@ -31,4 +31,4 @@ class MinLengthRule : Rule {
3131
func errorMessage() -> String {
3232
return "Must be at least \(DEFAULT_MIN_LENGTH) characters long"
3333
}
34-
}
34+
}

0 commit comments

Comments
 (0)