mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Update functions.php
is_uuid make it more generic so it doesn't matter which uuid type it is whether 1,2,3 or 4.
This commit is contained in:
@@ -143,8 +143,7 @@
|
||||
|
||||
if (!function_exists('is_uuid')) {
|
||||
function is_uuid($uuid) {
|
||||
//uuid version 4
|
||||
$regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i';
|
||||
$regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i';
|
||||
return preg_match($regex, $uuid);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user