Fix: Remove random prefix in ocr result

This commit is contained in:
LmeSzinc 2024-02-17 21:27:27 +08:00
parent e96a5ef1da
commit e1ae0c17b5

View File

@ -94,8 +94,8 @@ class OcrDungeonList(Ocr):
result = re.sub(r'蛀星的旧.*?历战', '蛀星的旧靥•历战', result) result = re.sub(r'蛀星的旧.*?历战', '蛀星的旧靥•历战', result)
# 9支援仓段 # 9支援仓段
result = result.removeprefix('9') for word in 'Q9α':
result = result.removeprefix('Q') result = result.removeprefix(word)
return result return result