From 366e7d01a336a3f9b7b473be755ec8cba041909e Mon Sep 17 00:00:00 2001 From: Dustan Ashley Date: Tue, 11 Feb 2014 07:24:27 -0500 Subject: [PATCH] Adding escape to the dash so that it is a literal rather than a range --- app/validators.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validators.php b/app/validators.php index 3dad6a3d7e..bd06547bd3 100644 --- a/app/validators.php +++ b/app/validators.php @@ -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); });