diff --git a/app/Providers/ValidationServiceProvider.php b/app/Providers/ValidationServiceProvider.php index 6851af4f97..78f5f2c4e6 100644 --- a/app/Providers/ValidationServiceProvider.php +++ b/app/Providers/ValidationServiceProvider.php @@ -92,7 +92,7 @@ class ValidationServiceProvider extends ServiceProvider $test_pattern = str_replace('regex:','', $value); try { - preg_match($test_pattern, $test_string, $matches); + preg_match($test_pattern, $test_string); return true; } catch (\Exception $e) { return false;