mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
Additionals: Update time method to allow single digit hour
Closes #1461
This commit is contained in:
@@ -855,6 +855,7 @@ test("time", function() {
|
||||
var method = methodTest("time");
|
||||
ok( method( "00:00" ), "Valid time, lower bound" );
|
||||
ok( method( "23:59" ), "Valid time, upper bound" );
|
||||
ok( method( "3:59" ), "Valid time, single digit hour" );
|
||||
ok(!method( "12" ), "Invalid time" );
|
||||
ok(!method( "29:59" ), "Invalid time" );
|
||||
ok(!method( "00:60" ), "Invalid time" );
|
||||
|
||||
Reference in New Issue
Block a user