diff --git a/codechecker_common/skiplist_handler.py b/codechecker_common/skiplist_handler.py index 014aaad1df..97e9cfde7b 100644 --- a/codechecker_common/skiplist_handler.py +++ b/codechecker_common/skiplist_handler.py @@ -60,7 +60,7 @@ def __gen_regex(self, skip_lines): # Note: normalization removes '/' from the end, see: # https://docs.python.org/3/library/os.path.html#os.path.normpath translated_glob = fnmatch.translate(norm_skip_path) - if translated_glob.endswith(r"\Z"): + if translated_glob.endswith((r"\Z", r"\z")): translated_glob = translated_glob[:-2] rexpr = re.compile( translated_glob + fr"(?:\{os.path.sep}.*)?$")