We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca6ef2 commit bab48ebCopy full SHA for bab48eb
tools/report-converter/codechecker_report_converter/util.py
@@ -78,8 +78,9 @@ def trim_path_prefixes(path: str, prefixes: Optional[List[str]]) -> str:
78
prefix += '/'
79
80
regex_str = fnmatch.translate(prefix)
81
- assert regex_str[-2:] == '\\Z', \
82
- r'fnmatch.translate should leave \\Z at the end of the matcher!'
+ assert regex_str[-2:] in ('\\Z', '\\z'), \
+ r'fnmatch.translate should leave \\Z or \\z ' \
83
+ r'at the end of the matcher!'
84
85
prefix_matcher = re.compile(regex_str[:-2])
86
0 commit comments