Skip to content

Commit b6611bb

Browse files
committed
Add in regex to only match all files if the specified input is a directory
1 parent 2a446da commit b6611bb

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
@@ -53,7 +53,7 @@ def __gen_regex(self, skip_lines):
5353
for skip_line in skip_lines:
5454
norm_skip_path = os.path.normpath(skip_line[1:].strip())
5555
rexpr = re.compile(
56-
fnmatch.translate(norm_skip_path))
56+
fnmatch.translate(norm_skip_path) + r"(?:\/.*)?")
5757
self.__skip.append((skip_line, rexpr))
5858

5959
def __check_line_format(self, skip_lines):

0 commit comments

Comments
 (0)