Fix character class definitions

This commit is contained in:
2011-12-29 17:55:46 +00:00
parent 62d5614bb4
commit 295e0045f5

View File

@@ -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) {