We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e8db0 commit 36b4402Copy full SHA for 36b4402
1 file changed
Validator/MinLengthRule.swift
@@ -22,7 +22,7 @@ class MinLengthRule : Rule {
22
}
23
24
func validate(value: String) -> Bool {
25
- if count(value) < DEFAULT_MIN_LENGTH {
+ if countElements(value) < DEFAULT_MIN_LENGTH {
26
return false
27
28
return true
0 commit comments