mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 16:28:17 +00:00
Fix: Handle OCR error 50/2401+)
This commit is contained in:
parent
ba744b2418
commit
a8b14abd46
@ -20,6 +20,8 @@ class StaminaOcr(DigitCounter):
|
||||
result = re.sub(r'1240$', '/240', result)
|
||||
# 0*0/24 -> 0/240
|
||||
result = re.sub(r'24$', '240', result)
|
||||
# * 50/2401+)
|
||||
result = result.replace('/2401', '/240')
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user