Fix missing path normalization in glob_match

This commit is contained in:
Michael Panchenko
2025-06-18 16:29:06 +02:00
parent f65a0c8350
commit 71df71a3d7
+1
View File
@@ -272,6 +272,7 @@ def glob_match(pattern: str, path: str) -> bool:
:return: True if path matches pattern
"""
pattern = pattern.replace("\\", "/") # Normalize backslashes to forward slashes
path = path.replace("\\", "/") # Normalize path backslashes to forward slashes
# Handle ** patterns that should match zero or more directories
if "**" in pattern: