Skip to content

Commit d448360

Browse files
authored
Update sanctioned country list (#139)
1 parent 8fd80f4 commit d448360

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

pkg/code/antispam/phone.go

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,12 @@ func isSanctionedPhoneNumber(phoneNumber string) bool {
1515
// todo: Probably doesn't belong in an antispam package, but it's just a
1616
// convenient place for now
1717
for _, prefix := range []string{
18-
"+7", // Russia
19-
"+30", // Greece (Balkans)
20-
"+40", // Romania (Balkans)
2118
"+53", // Cuba
22-
"+90", // Turkey (Balkans)
23-
"+95", // Myanmar (Burma)
2419
"+98", // Iran
25-
"+225", // Ivory Coast
26-
"+231", // Liberia
27-
"+243", // Democratic Republic of Congo
28-
"+249", // Sudan
29-
"+263", // Zimbabwe
30-
"+355", // Albania (Balkans)
31-
"+359", // Bulgaria (Balkans)
32-
"+375", // Belarus
33-
"+381", // Serbia (Balkans)
34-
"+382", // Montenegro (Balkans)
35-
"+383", // Kosovo (Balkans)
36-
"+385", // Croatia (Balkans)
37-
"+386", // Slovenia (Balkans)
38-
"+387", // Bosnia and Herzegovina (Balkans)
39-
"+389", // North Macedonia (Balkans)
4020
"+850", // North Korea
21+
"+7", // Russia
4122
"+963", // Syria
42-
"+964", // Iraq
23+
"+58", // Venezuala
4324
} {
4425
if strings.HasPrefix(phoneNumber, prefix) {
4526
return true

0 commit comments

Comments
 (0)