Erweiterung erlaubter Sonderzeichen bei Änderung Alias

This commit is contained in:
ma0068
2021-11-04 16:21:57 +01:00
parent 0c6f43f36e
commit cfaeaef8bd
2 changed files with 3 additions and 17 deletions
+2 -2
View File
@@ -421,12 +421,12 @@ function setVariable(variable, wert)
}
// ****
// * Validierung Alias auf Sonderzeichen (analog zu checkWunschUid, außerdem . und _ erlaubt)
// * Validierung Alias auf Sonderzeichen (analog zu checkWunschUid erlaubt)
// ****
function checkAlias(alias)
{
if (/^[a-z0-9 . _]*$/i.test(alias) === false)
if (/^[a-z0-9 . _ - & ;]*$/i.test(alias) === false)
{
return false;
}