From 3f9bc232282de3028c812c4842a32aa3e27a231a Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Fri, 19 Mar 2021 22:55:52 -0700 Subject: removed word filter --- Database.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Database.go') diff --git a/Database.go b/Database.go index 1b71e9d..f145f51 100644 --- a/Database.go +++ b/Database.go @@ -1160,11 +1160,11 @@ func DeleteCaptchaCodeDB(db *sql.DB, verify string) { } func EscapeString(text string) string { - re := regexp.MustCompile("(?i)(n)+(\\s+)?(i)+(\\s+)?(g)+(\\s+)?(e)+?(\\s+)?(r)+(\\s+)?") - text = re.ReplaceAllString(text, "I love black people") - re = regexp.MustCompile("(?i)(n)+(\\s+)?(i)+(\\s+)?(g)(\\s+)?(g)+(\\s+)?") - text = re.ReplaceAllString(text, "I love black people") - text = strings.Replace(text, "<", "<", -1) + // re := regexp.MustCompile("(?i)(n)+(\\s+)?(i)+(\\s+)?(g)+(\\s+)?(e)+?(\\s+)?(r)+(\\s+)?") + // text = re.ReplaceAllString(text, "I love black people") + // re = regexp.MustCompile("(?i)(n)+(\\s+)?(i)+(\\s+)?(g)(\\s+)?(g)+(\\s+)?") + // text = re.ReplaceAllString(text, "I love black people") + // text = strings.Replace(text, "<", "<", -1) return text } -- cgit v1.2.3