Fix a regex bug when trying to modify server key

This commit is contained in:
Dane Everitt 2016-01-03 23:24:30 -05:00
parent 4fe4881f77
commit 7314e70372

View file

@ -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.