adding a ton of stopwords to the generic rule only as that is the loudest rule (#851)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-04-21 17:01:21 -05:00
1 parent 8481f0e9cd
commit f93e5dc844
12 files changed
+3003 -44

No files matched your search

+2 -1
View File
@@ -50,8 +50,9 @@ func (a *Allowlist) RegexAllowed(s string) bool {
}
func (a *Allowlist) ContainsStopWord(s string) bool {
s = strings.ToLower(s)
for _, stopWord := range a.StopWords {
if strings.Contains(s, stopWord) {
if strings.Contains(s, strings.ToLower(stopWord)) {
return true
}
}
+1489 -17
View File
File diff suppressed because it is too large. Load diff