Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main beta #748

Merged
merged 33 commits into from
Nov 3, 2023
Merged

Main beta #748

merged 33 commits into from
Nov 3, 2023

Conversation

Night-stars-1
Copy link
Collaborator

No description provided.

weiduhuo and others added 3 commits November 3, 2023 16:07
@Night-stars-1 Night-stars-1 merged commit 87864c3 into main Nov 3, 2023
2 checks passed
@@ -590,14 +715,14 @@
:return character_name: 人物名称
"""
str = self.calculated.ocr_pos_for_single_line(points=(10.4,6,18,9) if IS_PC else (13,4,22,9)) # 识别人物名称 (主角名称为玩家自定义,无法适用预选列表)
character_name = re.sub(r"[.’,,。、·'-_——\"/\\]", '', str) # 删除由于背景光点造成的误判
character_name = re.sub(r"[.’,,。、·'-_——「」/|\[\]\"\\]", '', str) # 删除由于背景光点造成的误判

Check warning

Code scanning / CodeQL

Overly permissive regular expression range Medium

Suspicious character range that is equivalent to \['()*+,\-.\/0-9:;<=>?@A-Z\\[\\\\]^_\].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants