Skip to content

Commit

Permalink
Merge pull request #124 from DGAzr/develop
Browse files Browse the repository at this point in the history
Adding escape to the dash so that it is a literal rather than a range
  • Loading branch information
snipe committed Feb 11, 2014
2 parents a2f068e + 366e7d0 commit 9423c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/validators.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

0 comments on commit 9423c9e

Please sign in to comment.