mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 22:14:54 +00:00
Fix missing path normalization in glob_match
This commit is contained in:
1 parent
f65a0c8350
commit
71df71a3d7
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user