rolling back count to countElements
This commit is contained in:
parent
00e8db0ce2
commit
36b4402768
|
|
@ -22,7 +22,7 @@ class MinLengthRule : Rule {
|
|||
}
|
||||
|
||||
func validate(value: String) -> Bool {
|
||||
if count(value) < DEFAULT_MIN_LENGTH {
|
||||
if countElements(value) < DEFAULT_MIN_LENGTH {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in New Issue