Skip to content

Commit 61f4c62

Browse files
author
t_bertrand
committed
Modified NUMERIC rule to match a wider possibility of numbers
1 parent e60c05d commit 61f4c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
var _rules = {
3939
NOTEMPTY: /./,
4040
INTEGER: /^\d+$/,
41-
NUMERIC: /^\d+(?:[,|\s]\d{3})?(?:\.\d+)?$/,
41+
NUMERIC: /^\d+(?:[\s,]\d{3})*(?:\.\d+)?$/,
4242
MIXED: /^[\w\s-]+$/,
4343
NOSPACE: /^(?!\s)\S*$/,
4444
TRIM: /^[^\s].*[^\s]$/,

0 commit comments

Comments
 (0)