mirror of https://gitlab.com/bashrc2/epicyon
Require a category
parent
2048670417
commit
972c29a9fa
|
@ -1027,6 +1027,8 @@ def detect_dogwhistles(content: str, dogwhistles: {}) -> {}:
|
||||||
result = {}
|
result = {}
|
||||||
words = _get_simplified_content(content).split(' ')
|
words = _get_simplified_content(content).split(' ')
|
||||||
for whistle, category in dogwhistles.items():
|
for whistle, category in dogwhistles.items():
|
||||||
|
if not category:
|
||||||
|
continue
|
||||||
ending = False
|
ending = False
|
||||||
starting = False
|
starting = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue