Fixed bug, that broke UUID changer when user provides spaces in UUID.
This commit is contained in:
@@ -280,9 +280,10 @@ async function fetchUUIDCheck(givenUUID , strategy){
|
||||
}
|
||||
|
||||
function checkUUIDChars(uuid) {
|
||||
uuid.replace(/ /g,'')
|
||||
console.log("UUID in check: " + uuid);
|
||||
const regex = new RegExp("^[A-z0-9-]+$");
|
||||
if(regex.test(uuid)){
|
||||
if(regex.test(uuid) || uuid == ""){
|
||||
return uuid ;
|
||||
}
|
||||
return "invalid";
|
||||
|
||||
Reference in New Issue
Block a user