Merge pull request #124 from DGAzr/develop

Adding escape to the dash so that it is a literal rather than a range
This commit is contained in:
snipe
2014-02-11 14:31:49 -05:00
+1 -1
View File
@@ -2,5 +2,5 @@
Validator::extend('alpha_space', function($attribute,$value,$parameters)
{
return preg_match("/^[\n-+:?#~'\/\(\)_,!. a-zA-Z0-9]+$/m",$value);
return preg_match("/^[\n\-+:?#~'\/\(\)_,!. a-zA-Z0-9]+$/m",$value);
});