From 2616a0ebe6aaa8eafd3ac45f0cd12db76546f17e Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 00:00:32 +0800 Subject: [PATCH] fix: update REGEX_PUNCTUATION to include the correct dash character --- module/ocr/keyword.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ocr/keyword.py b/module/ocr/keyword.py index d7562ae..58a0075 100644 --- a/module/ocr/keyword.py +++ b/module/ocr/keyword.py @@ -7,7 +7,7 @@ import module.config.server as server from module.exception import ScriptError # ord('.') = 65294 -REGEX_PUNCTUATION = re.compile(r'[ ,..\'"“”,。…::;;!!??·・•●〇°*※\-—-/\\\n\t()\[\]()「」『』【】《》[]]') +REGEX_PUNCTUATION = re.compile(r'[ ,..\'"“”,。…::;;!!??·・•●〇°*※\-—–-/\\\n\t()\[\]()「」『』【】《》[]]') def parse_name(n):