自定义识别词#注释 认为为注释

This commit is contained in:
honue 2024-02-22 17:22:40 +08:00
parent c5b13f2fee
commit c44c0f6321

View File

@ -26,7 +26,7 @@ class WordsMatcher(metaclass=Singleton):
# 读取自定义识别词
words: List[str] = self.systemconfig.get(SystemConfigKey.CustomIdentifiers) or []
for word in words:
if not word:
if not word or word.find('#') == 0:
continue
try:
if word.count(" => ") and word.count(" && ") and word.count(" >> ") and word.count(" <> "):