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.