mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
Fixed regex issue for decimals without leading zeroes. Added new methods test. Fixes #41
This commit is contained in:
committed by
Jörn Zaefferer
parent
e30b3aab02
commit
f2d525c919
@@ -131,6 +131,7 @@ test("number", function() {
|
||||
ok( method( "123.000" ), "Valid decimal" );
|
||||
ok( method( "123,000.00" ), "Valid decimal" );
|
||||
ok( method( "-123,000.00" ), "Valid decimal" );
|
||||
ok( method( ".100" ), "Valid decimal" );
|
||||
ok(!method( "1230,000.00" ), "Invalid decimal" );
|
||||
ok(!method( "123.0.0,0" ), "Invalid decimal" );
|
||||
ok(!method( "x123" ), "Invalid decimal" );
|
||||
|
||||
Reference in New Issue
Block a user