-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
I have one pattern that uses escaping for parenthesis:
file-\\(suffix\\).md
As a result of the work I get:
globParent('file-\\(suffix\\).md')
// file-
// expected result: .
Obviously, this is an incorrect parent directory. Yeap, I understand that this is described in the documentation, but I find it difficult to get all users to use the new format. Also I see no reason to change user input inside my package, because it can lead to problems.
Maybe we can add an option to control automatic replacement?
Lines 15 to 17 in d497548
if (isWin32 && str.indexOf(slash) < 0) { | |
str = str.replace(backslash, slash); | |
} |
Found this issue in mrmlnc/fast-glob#223. The fast-glob
package only accepts patterns with forward slashes.
Metadata
Metadata
Assignees
Labels
No labels