Skip to content

Commit 7bee637

Browse files
committed
Handle windows paths correctly in skipfiles
1 parent b05e1d9 commit 7bee637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codechecker_common/skiplist_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __gen_regex(self, skip_lines):
6666
elif translated_glob.endswith(r"\Z"):
6767
translated_glob = translated_glob[:-2]
6868
rexpr = re.compile(
69-
translated_glob + r"(?:/.*)?$")
69+
translated_glob + r"(?:" + os.path.normpath("/") + r".*)?$")
7070
self.__skip.append((skip_line, rexpr))
7171

7272
def __check_line_format(self, skip_lines):

0 commit comments

Comments
 (0)