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 a651457 commit 3e0c163Copy full SHA for 3e0c163
pkg/code/antispam/phone.go
@@ -6,7 +6,7 @@ import "strings"
6
// todo: Needs tests
7
func hasBannedPhoneNumberPrefix(phoneNumber string) bool {
8
// Check that a +7 phone number is not a mobile number from Kazakhstan
9
- if strings.HasPrefix("+770", phoneNumber) || strings.HasPrefix("+777", phoneNumber) {
+ if strings.HasPrefix(phoneNumber, "+770") || strings.HasPrefix(phoneNumber, "+777") {
10
return false
11
}
12
0 commit comments