From 4a9e8066a04a626d7bd200b162001882241a016d Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 18 Jul 2024 23:35:59 +0800 Subject: [PATCH] Fix: Handle missing 0 in TrailblazePowerOcr --- tasks/combat/prepare.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/combat/prepare.py b/tasks/combat/prepare.py index 0b47a2c41..98dcf718a 100644 --- a/tasks/combat/prepare.py +++ b/tasks/combat/prepare.py @@ -24,6 +24,8 @@ class TrailblazePowerOcr(DigitCounter): result = re.sub(r'[买米装:()]', '', result) # 61240 -> 6/240 result = re.sub(r'1240$', '/240', result) + # 0*0/24 -> 0/240 + result = re.sub(r'24$', '240', result) return result