From 295e0045f536e0b9da8cea212669fba7441475c0 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Thu, 29 Dec 2011 17:55:46 +0000 Subject: [PATCH] Fix character class definitions --- source/lib/SihnonFramework/Validation/Text.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/lib/SihnonFramework/Validation/Text.class.php b/source/lib/SihnonFramework/Validation/Text.class.php index 1a1a092..acb60c7 100644 --- a/source/lib/SihnonFramework/Validation/Text.class.php +++ b/source/lib/SihnonFramework/Validation/Text.class.php @@ -10,11 +10,11 @@ class SihnonFramework_Validation_Text extends SihnonFramework_Validation { const Whitespace = 0x16; protected static $contents = array( - self::Alphabetical => ':alpha:', - self::Digit => ':digit:', - self::Numeric => ':digit:\.-', - self::Symbol => ':punct:', - self::Whitespace => ':space:', + self::Alphabetical => '[:alpha:]', + self::Digit => '[:digit:]', + self::Numeric => '[:digit:]\.-', + self::Symbol => '[:punct:]', + self::Whitespace => '[:space:]', ); public static function content($inputs, $content = self::Defaults) {