Simplify regular expression for UUID
This commit is contained in:
parent
debd083735
commit
a1b4e36cf4
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ function parse_llHTTPRequest_headers(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function isValidGuid($guid){
|
function isValidGuid($guid){
|
||||||
return !empty($guid) && preg_match('/^\{?[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}\}?$/', $guid);
|
return !empty($guid) && preg_match('/^\{?[a-zA-Z0-9]{8}(?:-[a-zA-Z0-9]{4}){4}[a-zA-Z0-9]{8}\}?$/', $guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
function email_death($error){
|
function email_death($error){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue