Maybe comma need not be escaped?

This commit is contained in:
Bradley M. Kuhn 2014-12-02 16:28:46 -05:00
parent 8b16abf981
commit 3438812e00

View file

@ -37,7 +37,7 @@ $(document).ready(function() {
var value = input.val();
var errorElement=$("span", input.parent());
var re = /^[0-9\,\.]+$/;
var re = /^[0-9,\.]+$/;
var isValid = (re.test(value) && parseInt(value) >= 120);
if (isValid) {
input.removeClass("invalid").addClass("valid");