Resolved merge conflict

This commit is contained in:
2023-03-07 11:52:57 +01:00

View File

@@ -283,7 +283,8 @@ function checkUUIDChars(uuid) {
uuid.replace(/ /g,'')
console.log("UUID in check: " + uuid);
const regex = new RegExp("^[A-z0-9-]+$");
if(regex.test(uuid) || uuid == ""){
if(regex.test(uuid) && uuid != ""){
return uuid ;
}
return "invalid";
@@ -292,9 +293,7 @@ function checkUUIDChars(uuid) {
function changeUUID(element){
const uuidStrategy = $('input[name="uuid-validation-type"]:checked').val();
// const givenUUID = checkUUIDChars(element.value);
const givenUUID = element.value;
console.log(givenUUID);
const givenUUID = checkUUIDChars(element.value);
if( givenUUID == clientUUID ){
$("#uuid-input").attr("disabled", true);