From c44c0f63219b0be9ec77eada6539df2107b36ee3 Mon Sep 17 00:00:00 2001 From: honue Date: Thu, 22 Feb 2024 17:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E8=AF=8D#=E6=B3=A8=E9=87=8A=20=E8=AE=A4=E4=B8=BA=E4=B8=BA?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/meta/words.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/meta/words.py b/app/core/meta/words.py index 6e46372e..ae6ed908 100644 --- a/app/core/meta/words.py +++ b/app/core/meta/words.py @@ -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(" <> "):