Skip to content

Commit 7314e70

Browse files
committed
Fix a regex bug when trying to modify server key
1 parent 4fe4881 commit 7314e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function updateDetails($id, array $data)
281281
// Validate Fields
282282
$validator = Validator::make($data, [
283283
'owner' => 'email|exists:users,email',
284-
'name' => 'regex:^([\w -]{4,35})$'
284+
'name' => 'regex:([\w -]{4,35})'
285285
]);
286286

287287
// Run validator, throw catchable and displayable exception if it fails.

0 commit comments

Comments
 (0)