Fix a regex bug when trying to modify server key
This commit is contained in:
parent
4fe4881f77
commit
7314e70372
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue