Skip to content

Commit 3e0c163

Browse files
authored
Fix parameter ordering for Kazakhstan in hasBannedPhoneNumberPrefix (#58)
1 parent a651457 commit 3e0c163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/code/antispam/phone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "strings"
66
// todo: Needs tests
77
func hasBannedPhoneNumberPrefix(phoneNumber string) bool {
88
// Check that a +7 phone number is not a mobile number from Kazakhstan
9-
if strings.HasPrefix("+770", phoneNumber) || strings.HasPrefix("+777", phoneNumber) {
9+
if strings.HasPrefix(phoneNumber, "+770") || strings.HasPrefix(phoneNumber, "+777") {
1010
return false
1111
}
1212

0 commit comments

Comments
 (0)