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:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user