Added "." and "-" support in stream names for the interface. API already supported it

This commit is contained in:
Balder 2022-11-28 11:12:18 +01:00
parent 0db153b7b9
commit 5d0861d5ca
2 changed files with 9 additions and 9 deletions

View file

@ -1232,9 +1232,9 @@ var UI = {
classes: ['red']
};
}
if (val.replace(/[^\da-z_]/g,'') != val) {
if (val.replace(/[^\da-z_\-\.]/g,'') != val) {
return {
msg: 'Special characters (except for underscores) are not allowed.',
msg: 'Special characters (except for underscores (_), periods (.) and dashes (-)) are not allowed.',
classes: ['red']
};
}