mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
Optimise RegEx patterns, especially for UK phone numbers.
This commit is contained in:
@@ -554,11 +554,17 @@ test("phone (us)", function() {
|
||||
|
||||
test("mobileUK", function() {
|
||||
var method = methodTest("mobileUK");
|
||||
ok( method( "07434234323" ), "Valid UK Mobile Number" );
|
||||
ok( method( "07011111111" ), "Valid UK Mobile Number" );
|
||||
ok( method( "+447011111111" ), "Valid UK Mobile Number" );
|
||||
ok( !method( "07334234323" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "11111111111" ), "Invalid UK Mobile Number" );
|
||||
ok( method( "07734234323" ), "Valid UK Mobile Number" );
|
||||
ok( method( "+447734234323" ), "Valid UK Mobile Number" );
|
||||
ok( !method( "07034234323" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "0753423432" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "07604234323" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "077342343234" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "044342343234" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "+44753423432" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "+447604234323" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "+4477342343234" ), "Invalid UK Mobile Number" );
|
||||
ok( !method( "+4444342343234" ), "Invalid UK Mobile Number" );
|
||||
});
|
||||
|
||||
test("dateITA", function() {
|
||||
|
||||
Reference in New Issue
Block a user