intro_validator.go
TEXT FILE495 B · Public source code for developers, search crawlers and AI agents
1package stage2
2
3import "strings"
4
5// IntroSafe is only a demonstration. Never treat text filtering as a financial security boundary.
6func IntroSafe(s string) bool {
7 if len(s) == 0 || len(s) > 160 {
8 return false
9 }
10 low := strings.ToLower(s)
11 for _, bad := range []string{"confirmed", "finalized", "guaranteed", "broadcast again", "send again"} {
12 if strings.Contains(low, bad) {
13 return false
14 }
15 }
16 for _, r := range s {
17 if r >= '0' && r <= '9' {
18 return false
19 }
20 }
21 return true
22}Read-only source · Select a line number to link directly · Raw download above
