From acf72b18d5401a0d2aa444581574e52d0e5e2a7e Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 14 May 2024 01:37:27 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20[CN]=20Handle=20OCR=20error=20on=20?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/base/main_page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/base/main_page.py b/tasks/base/main_page.py index 93f514aa7..439dd5622 100644 --- a/tasks/base/main_page.py +++ b/tasks/base/main_page.py @@ -37,7 +37,7 @@ class OcrPlaneName(OcrWhiteLetterOnComplexBackground): # 区域-战 result = re.sub(r'区域.*战$', '区域战斗', result) # 区域-事 - result = re.sub(r'区域.*事$', '区域事件', result) + result = re.sub(r'区域.*[事件]$', '区域事件', result) # 区域-战 result = re.sub(r'区域.*交$', '区域交易', result) # 区域-事伴, 区域-事祥