Skip to content

Commit 3bd07b3

Browse files
fix bug of exlcude option on Windows
Signed-off-by: Wonjae Park <[email protected]>
1 parent 1c005e1 commit 3bd07b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_util/exclude.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def excluding_files(patterns: list[str], path_to_scan: str) -> list[str]:
1313
# Replace backslash with slash
1414
normalized_patterns = []
1515
for pattern in patterns:
16+
pattern = pattern.replace('\\', '/')
1617
if pattern.endswith('/') or pattern.endswith('/*'):
1718
pattern = pattern.rstrip('/*')
18-
pattern = pattern.replace('\\', '/')
1919
normalized_patterns.append(pattern)
2020

2121
# Traverse directories

0 commit comments

Comments
 (0)