-
-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
What were you expecting to happen?
The string base/folder?/file1.txt should return base as the non-magic parent path
What actually happened?
globParent('base/folder?/file1.txt') returns base/folder?
Please provide the following information:
- OS & version: Windows 10 20H2, also Ubuntu 16.04
- node version (run
node -v): 15.10 - yarn version: 1.22.5
Additional information
I've been trying to track down the source of my issue where the del library wasn't deleting expected folders based on a pattern like the one mentioned above (after del switched to using fast-glob). This led me to follow the dependency tree from del to fast-glob to glob-parent.
Unless I'm completely mistaken about how this library works I would expect a question mark to be treated like other special characters. For example, globParent('base/folder*/file1.txt') returns base.
Metadata
Metadata
Assignees
Labels
No labels