summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/WebConsole/jscripts/validators.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/WebConsole/jscripts/validators.js b/admin/WebConsole/jscripts/validators.js
index d9afb0f0..f99f9ff7 100644
--- a/admin/WebConsole/jscripts/validators.js
+++ b/admin/WebConsole/jscripts/validators.js
@@ -23,15 +23,15 @@ function validate_expr(value, epx) {
}
function validate_number(value) {
- return validate_expr(value, "^\d*$");
+ return validate_expr(value, "^\\d*$");
}
function validate_alphanum(value) {
- return validate_expr(value, "^\w*$");
+ return validate_expr(value, "^\\w*$");
}
function validate_notnull(value) {
- return validate_expr(value, "^.+$") && !validate_expr(value, "^\s*0\s*$");
+ return validate_expr(value, "^.+$") && !validate_expr(value, "^\\s*0\\s*$");
}
function validate_number_notnull(value) {