From 07cc072e20f5a4310ef72e2e925080a99b523acd Mon Sep 17 00:00:00 2001 From: Jeff Potter Date: Wed, 25 Mar 2015 09:13:04 -0600 Subject: [PATCH] Update MinLengthRule.swift --- Validator/MinLengthRule.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}