-
Notifications
You must be signed in to change notification settings - Fork 739
Open
Labels
Description
This looks like another regression in v0.9.0.
It seems like glob expansion only expands in the last path segment, not in any earlier path segments. For example:
common.expand(['test/r?sources/file1.txt'])
This will return the same literal input that was passed in: test/r?sources/file1.txt
. The expected response is test/resources/file1.txt
(an actual file). Interestingly, this appears to only be the case for the ?
character. Other symbols (like *
) will still expand as expected.
The ?
still works when it's used in the final path segment (the file name). The only issue is when ?
is part of a folder name in an earlier path segment.