mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 11:44:34 +01:00
fix content filtering regex.
This commit is contained in:
@@ -69,6 +69,6 @@ var pornWordsRe = func() *regexp.Regexp {
|
||||
"teen porn",
|
||||
}
|
||||
concat := strings.Join(pornWords, "|")
|
||||
regex := fmt.Sprintf(`\b()\b`, concat)
|
||||
regex := fmt.Sprintf(`\b(%s)\b`, concat)
|
||||
return regexp.MustCompile(regex)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user