Disallow _ in node name (#1632)

This commit is contained in:
Peter Kuehne
2021-04-08 13:26:01 +01:00
committed by GitHub
parent 2e50e1f506
commit eaf9735eda
6 changed files with 18 additions and 12 deletions
+4
View File
@@ -1012,6 +1012,10 @@ jQuery.validator.addMethod("nospaces", (value, element) => {
return value.indexOf(' ') < 0;
}, "Name cannot contain any spaces!");
jQuery.validator.addMethod("nounderscores", (value, element) => {
return value.indexOf('_') < 0;
}, "Name cannot contain underscores!");
jQuery.validator.addMethod("lowercase", (value, element) => {
return value === value.toLowerCase();
}, "Name must be all lower case!");