Skip to content
Permalink
Browse files

Fixed Regexps for number & positive-number

  • Loading branch information...
ksenia-nenasheva committed Nov 2, 2017
1 parent 3c7c582 commit f8e3526244af53178439b9a73e1297cf3f7f5ce4
Showing with 2 additions and 2 deletions.
  1. +2 −2 war/src/main/webapp/scripts/hudson-behavior.js
@@ -694,9 +694,9 @@ var jenkinsRules = {
"INPUT.required" : function(e) { registerRegexpValidator(e,/./,"Field is required"); },

// validate form values to be an integer
"INPUT.number" : function(e) { registerRegexpValidator(e,/^(\d+|)$/,"Not an integer"); },
"INPUT.number" : function(e) { registerRegexpValidator(e,/^(\d+)$/,"Not an integer"); },
"INPUT.positive-number" : function(e) {
registerRegexpValidator(e,/^(\d*[1-9]\d*|)$/,"Not a positive integer");
registerRegexpValidator(e,/^(\d*[1-9]\d*)$/,"Not a positive integer");
},

"INPUT.auto-complete": function(e) {// form field with auto-completion support

0 comments on commit f8e3526

Please sign in to comment.
You can’t perform that action at this time.