1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

fix: updated regex for mission

This commit is contained in:
RedDeadDepresso
2023-12-25 14:07:20 +00:00
committed by YoursFunny
parent 9aaf1e8f3b
commit d34a8a39d5
4 changed files with 443 additions and 125 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class StageList:
def load_stage_indexes(self, main: ModuleBase):
self.current_indexes = list(
filter(
lambda x: re.match(r'^\d{1,2}-?\d?$', x[0]) and x[0] != '00',
lambda x: re.match(r'^\d{1,2}-?[\dA-Z]$', x[0]) and x[0] != '00',
map(lambda x: (x.ocr_text, x.box), self.index_ocr.detect_and_ocr(main.device.image))
)
)