We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e72775 commit c6ce8aaCopy full SHA for c6ce8aa
lib/glob.js
@@ -24,6 +24,7 @@ class Glob {
24
if (glob.includes('**')) {
25
// Handle ** which can match across directory boundaries
26
pattern = glob
27
+ .replace(/\\/g, '\\\\')
28
.replace(/\*\*/g, '__GLOBSTAR__')
29
.replace(/\./g, '\\.')
30
.replace(/\//g, '\\/')
@@ -33,6 +34,7 @@ class Glob {
33
34
} else {
35
// Handle patterns with * but not **
36
37
38
39
40
.replace(/\?/g, '.')
0 commit comments