We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45154af commit 58dece9Copy full SHA for 58dece9
test/methods.js
@@ -553,6 +553,15 @@ test("phone (us)", function() {
553
ok(!method( "212 123 4567" ), "Invalid us phone number" );
554
});
555
556
+test("phoneUK", function() {
557
+ var method = methodTest("phoneUK");
558
+ ok( method( "07222 555555" ), "Valid UK Phone Number" );
559
+ ok( method( "(07222) 555555" ), "Valid UK Phone Number" );
560
+ ok( method( "+44 7222 555 555" ), "Valid UK Phone Number" );
561
+ ok(!method( "7222 555555" ), "Invalid UK Phone Number" );
562
+ ok(!method( "+44 07222 555555" ), "Invalid UK Phone Number" );
563
+});
564
+
565
test("mobileUK", function() {
566
var method = methodTest("mobileUK");
567
ok( method( "07734234323" ), "Valid UK Mobile Number" );
0 commit comments