mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Removed unused $matches variable
This commit is contained in:
parent
dec9ac1ac8
commit
4ae4083b7b
|
@ -92,7 +92,7 @@ class ValidationServiceProvider extends ServiceProvider
|
||||||
$test_pattern = str_replace('regex:','', $value);
|
$test_pattern = str_replace('regex:','', $value);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
preg_match($test_pattern, $test_string, $matches);
|
preg_match($test_pattern, $test_string);
|
||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue