From 36b4402768c29b66f1f8d5e3724874fc00205427 Mon Sep 17 00:00:00 2001 From: Jeff Potter Date: Mon, 30 Mar 2015 16:10:35 -0600 Subject: [PATCH] rolling back count to countElements --- Validator/MinLengthRule.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Validator/MinLengthRule.swift b/Validator/MinLengthRule.swift index 0c94f4a..4971000 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 countElements(value) < DEFAULT_MIN_LENGTH { return false } return true