Skip to content

Commit

Permalink
Update sanctioned country list (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffyanta committed Jun 13, 2024
1 parent 8fd80f4 commit d448360
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions pkg/code/antispam/phone.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,12 @@ func isSanctionedPhoneNumber(phoneNumber string) bool {
// todo: Probably doesn't belong in an antispam package, but it's just a
// convenient place for now
for _, prefix := range []string{
"+7", // Russia
"+30", // Greece (Balkans)
"+40", // Romania (Balkans)
"+53", // Cuba
"+90", // Turkey (Balkans)
"+95", // Myanmar (Burma)
"+98", // Iran
"+225", // Ivory Coast
"+231", // Liberia
"+243", // Democratic Republic of Congo
"+249", // Sudan
"+263", // Zimbabwe
"+355", // Albania (Balkans)
"+359", // Bulgaria (Balkans)
"+375", // Belarus
"+381", // Serbia (Balkans)
"+382", // Montenegro (Balkans)
"+383", // Kosovo (Balkans)
"+385", // Croatia (Balkans)
"+386", // Slovenia (Balkans)
"+387", // Bosnia and Herzegovina (Balkans)
"+389", // North Macedonia (Balkans)
"+850", // North Korea
"+7", // Russia
"+963", // Syria
"+964", // Iraq
"+58", // Venezuala
} {
if strings.HasPrefix(phoneNumber, prefix) {
return true
Expand Down

0 comments on commit d448360

Please sign in to comment.