mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Allow both PR and PRY in research filter string (#1716)
This commit is contained in:
parent
a47cf1dd0f
commit
75cd3f34d7
@ -141,8 +141,14 @@ class ResearchSelector(ResearchUI):
|
||||
self.config.Research_UsePart))
|
||||
logger.attr('Allow delay', self.config.Research_AllowDelay)
|
||||
|
||||
# Case insensitive
|
||||
string = string.lower()
|
||||
# Filter uses `hakuryu`, but allows both `hakuryu` and `hakuryuu`
|
||||
string = string.lower().replace('hakuryuu', 'hakuryu')
|
||||
string = string.replace('hakuryuu', 'hakuryu')
|
||||
# Allow both `fastest` and `shortest`
|
||||
string = string.replace('fastest', 'shortest')
|
||||
# Allow both `PR` and `PRY`
|
||||
string = re.sub(r'pr([\d\- >])', r'pry\1', string)
|
||||
|
||||
FILTER.load(string)
|
||||
priority = FILTER.apply(self.projects, func=partial(self._research_check, enforce=enforce))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user