From 9e73adad52e33f3316e9c26176935263891096ef Mon Sep 17 00:00:00 2001 From: Mary Zhong Date: Wed, 29 May 2024 17:41:39 -0400 Subject: [PATCH] Update canada mobile codes list --- iso3166.go | 9 ++++++--- phonenumber_test.go | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/iso3166.go b/iso3166.go index 7acfadd..e8c7e94 100644 --- a/iso3166.go +++ b/iso3166.go @@ -342,9 +342,12 @@ func populateISO3166() { i.Alpha3 = "CAN" i.CountryCode = "1" i.CountryName = "Canada" - i.MobileBeginWith = []string{"204", "226", "236", "249", "250", "289", "306", "343", "365", "403", "416", "418", "431", - "437", "438", "450", "506", "514", "519", "579", "581", "587", "600", "604", "613", "639", "647", "705", - "709", "778", "780", "807", "819", "867", "873", "902", "905"} + i.MobileBeginWith = []string{ + "204", "226", "236", "249", "250", "257", "263", "289", "306", "343", "354", "365", "367", "368", "382", + "387", "403", "416", "418", "428", "431", "437", "438", "450", "460", "468", "474", "506", "514", "519", + "537", "548", "568", "579", "581", "584", "587", "600", "604", "613", "639", "647", "672", "683", "705", + "709", "742", "753", "778", "780", "782", "807", "819", "825", "851", "867", "873", "879", "902", "905", + "942"} i.PhoneNumberLengths = []int{10} iso3166Datas = append(iso3166Datas, i) diff --git a/phonenumber_test.go b/phonenumber_test.go index 2613cb5..c91b009 100644 --- a/phonenumber_test.go +++ b/phonenumber_test.go @@ -32,6 +32,7 @@ var mobWithLLCountryTests = []struct { {"8614855512329", "CN"}, {"38342224999", "XK"}, {"26876123456", "SZ"}, + {"18251234567", "CA"}, } func TestGetCountryForMobileNumberWithLandLine(t *testing.T) {