Skip to content

Commit d3533e1

Browse files
authored
Remove regex case insensitivity modifier in UUID detection to speed it up (#50067)
1 parent 67616d5 commit d3533e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Support/Str.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public static function isUuid($value)
542542
return false;
543543
}
544544

545-
return preg_match('/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iD', $value) > 0;
545+
return preg_match('/^[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}$/D', $value) > 0;
546546
}
547547

548548
/**

0 commit comments

Comments
 (0)