Fixed regex issue for decimals without leading zeroes. Added new methods test. Fixes #41

This commit is contained in:
Max Lynch
2012-04-02 13:33:40 -05:00
committed by Jörn Zaefferer
parent e30b3aab02
commit f2d525c919
2 changed files with 2 additions and 1 deletions

View File

@@ -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" );