diff --git a/Validator/MinLengthRule.swift b/Validator/MinLengthRule.swift index accc858..0c94f4a 100644 --- a/Validator/MinLengthRule.swift +++ b/Validator/MinLengthRule.swift @@ -22,7 +22,7 @@ class MinLengthRule : Rule { } func validate(value: String) -> Bool { - if count(value) <= DEFAULT_MIN_LENGTH { + if count(value) < DEFAULT_MIN_LENGTH { return false } return true @@ -31,4 +31,4 @@ class MinLengthRule : Rule { func errorMessage() -> String { return "Must be at least \(DEFAULT_MIN_LENGTH) characters long" } -} \ No newline at end of file +}