Skip to content
Snippets Groups Projects
Commit d50b3f9d authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fix empty parameter check

parent dde62714
No related branches found
No related tags found
No related merge requests found
Pipeline #8761 passed
......@@ -392,6 +392,7 @@ class Key {
}
static IS_VALID_UUID(input_key){
if(!input_key || typeof input_key != "string") return false;
return input_key.match(
/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment