mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 00:52:22 +00:00
Fix: campaign_ocr result start with '-'
This commit is contained in:
parent
e885665181
commit
3e687c4b23
@ -31,6 +31,8 @@ def ensure_chapter_index(name):
|
||||
|
||||
def ocr_result_process(result):
|
||||
result = result.lower().replace('--', '-')
|
||||
if result.startswith('-'):
|
||||
result = result[1:]
|
||||
if len(result) == 2 and result[0].isdigit():
|
||||
result = '-'.join(result)
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user