aboutsummaryrefslogtreecommitdiff
path: root/Database.go
diff options
context:
space:
mode:
authorFChannel <>2021-03-19 22:55:52 -0700
committerFChannel <>2021-03-19 22:55:52 -0700
commit3f9bc232282de3028c812c4842a32aa3e27a231a (patch)
treee6ba93651d19b38632a27a8615c02987d5e56e2b /Database.go
parentbbb1b82c5b5bc9c7e9cd96c41aa8339a95e49864 (diff)
removed word filter
Diffstat (limited to 'Database.go')
-rw-r--r--Database.go10
1 files changed, 5 insertions, 5 deletions
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, "<", "&lt;", -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, "<", "&lt;", -1)
return text
}