diff options
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 10 |
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, "<", "<", -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 } |