From 7314e70372cef6adb6b889d7901f79d349b2f340 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 3 Jan 2016 23:24:30 -0500 Subject: [PATCH] Fix a regex bug when trying to modify server key --- app/Repositories/ServerRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index 648ff077f..70713fc22 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -281,7 +281,7 @@ class ServerRepository // Validate Fields $validator = Validator::make($data, [ 'owner' => 'email|exists:users,email', - 'name' => 'regex:^([\w -]{4,35})$' + 'name' => 'regex:([\w -]{4,35})' ]); // Run validator, throw catchable and displayable exception if it fails.