Skip to content

Commit

Permalink
Accept negative numbers in INPUT.number (#5341)
Browse files Browse the repository at this point in the history
  • Loading branch information
felfert authored Mar 9, 2021
1 parent 037e137 commit 4af8d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ function rowvgStartEachRow(recursive,f) {
event.preventDefault();
}
})
registerRegexpValidator(e,/^(\d+|)$/,"Not an integer");
registerRegexpValidator(e,/^((\-?\d+)|)$/,"Not an integer");
});

Behaviour.specify("INPUT.number-required", "input-number-required", ++p, function(e) {
Expand Down

0 comments on commit 4af8d2d

Please sign in to comment.