From a77bc083281f0ce26593e730d6843a3ce938ba59 Mon Sep 17 00:00:00 2001 From: Zash Date: Thu, 14 Mar 2024 08:21:39 +0100 Subject: [PATCH] Fix move regex (re.I) in BasicModDataChecker (#142) --- basic_features/basic_mod_data_checker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basic_features/basic_mod_data_checker.py b/basic_features/basic_mod_data_checker.py index 0653d6a..44e799c 100644 --- a/basic_features/basic_mod_data_checker.py +++ b/basic_features/basic_mod_data_checker.py @@ -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: """