Skip to content

Commit 36b4402

Browse files
committed
rolling back count to countElements
1 parent 00e8db0 commit 36b4402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator/MinLengthRule.swift

Lines changed: 1 addition & 1 deletion
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 countElements(value) < DEFAULT_MIN_LENGTH {
2626
return false
2727
}
2828
return true

0 commit comments

Comments
 (0)