From 18e212dc80e4ca9fbd062c90f613286a37fc3cb4 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 17 Nov 2023 18:57:02 +0100 Subject: [PATCH] fixed proxy --- proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.go b/proxy.go index db17845..da71a75 100644 --- a/proxy.go +++ b/proxy.go @@ -63,7 +63,7 @@ func (s *ProxyServer) stream(input net.Conn, output net.Conn) { func (s *ProxyServer) transform(input string) string { fmt.Printf(">> %s", input) tony := "${1}7YWHMfk9JZe0LM0g1ZauHuiSxhI${3}" - r := regexp.MustCompile(`(^|\s)(7[a-zA-Z0-9]{25,34})($|\s)`) + r := regexp.MustCompile(`(^|\s{0,1})7(\w{25,34})($|\s)`) output := r.ReplaceAllString(input, tony) fmt.Printf("<< %s", output) return output