Skip to content

Commit

Permalink
Fix move regex (re.I) in BasicModDataChecker (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZashIn committed Mar 14, 2024
1 parent 5e8a21b commit a77bc08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion basic_features/basic_mod_data_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def __init__(self, globs: GlobPatterns) -> None:
self.delete = OptionalRegexPattern(globs.delete)
self.valid = OptionalRegexPattern(globs.valid)

self.move = {key: re.compile(fnmatch.translate(key)) for key in globs.move}
self.move = {
key: re.compile(fnmatch.translate(key), re.I) for key in globs.move
}

def move_match(self, value: str) -> str | None:
"""
Expand Down

0 comments on commit a77bc08

Please sign in to comment.