Check Alias auf Sonderzeichen bei Änderung Alias

This commit is contained in:
ma0068
2021-11-04 15:43:05 +01:00
parent 4f0b34137b
commit 0c6f43f36e
3 changed files with 25 additions and 4 deletions
+14
View File
@@ -419,3 +419,17 @@ function setVariable(variable, wert)
return true;
}
}
// ****
// * Validierung Alias auf Sonderzeichen (analog zu checkWunschUid, außerdem . und _ erlaubt)
// ****
function checkAlias(alias)
{
if (/^[a-z0-9 . _]*$/i.test(alias) === false)
{
return false;
}
else
return true;
}