mirror of
https://github.com/tiennm99/serena.git
synced 2026-09-03 18:17:05 +00:00
Fix missing path normalization in glob_match
This commit is contained in:
@@ -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