mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-21 16:28:17 +00:00
Fix: maxsplit amount results to handle trailing ":"
This commit is contained in:
parent
224a59b054
commit
00527c6413
@ -14,7 +14,7 @@ from tasks.planner.scan import OcrItemName
|
||||
|
||||
class OcrItemAmount(Digit):
|
||||
def format_result(self, result):
|
||||
res = re.split(r'[::;;]', result)
|
||||
res = re.split(r'[::;;]', result, maxsplit=1)
|
||||
result = res[-1]
|
||||
return super().format_result(result)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user