File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,11 @@ class Minimatch {
168
168
this . options = options
169
169
this . set = [ ]
170
170
this . pattern = pattern
171
+ this . windowsPathsNoEscape = ! ! options . windowsPathsNoEscape ||
172
+ options . allowWindowsEscape === false
173
+ if ( this . windowsPathsNoEscape ) {
174
+ this . pattern = this . pattern . replace ( / \\ / g, '/' )
175
+ }
171
176
this . regexp = null
172
177
this . negate = false
173
178
this . comment = false
Original file line number Diff line number Diff line change 2
2
"author" :
" Isaac Z. Schlueter <[email protected] > (http://blog.izs.me)" ,
3
3
"name" : " minimatch" ,
4
4
"description" : " a glob matcher in javascript" ,
5
- "version" : " 5.0.1 " ,
5
+ "version" : " 5.1.0 " ,
6
6
"repository" : {
7
7
"type" : " git" ,
8
8
"url" : " git://github.com/isaacs/minimatch.git"
Original file line number Diff line number Diff line change 4750
4750
"license" : " ISC"
4751
4751
},
4752
4752
"node_modules/minimatch" : {
4753
- "version" : " 5.0.1 " ,
4754
- "resolved" : " https://registry.npmjs.org/minimatch/-/minimatch-5.0.1 .tgz" ,
4755
- "integrity" : " sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g ==" ,
4753
+ "version" : " 5.1.0 " ,
4754
+ "resolved" : " https://registry.npmjs.org/minimatch/-/minimatch-5.1.0 .tgz" ,
4755
+ "integrity" : " sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg ==" ,
4756
4756
"inBundle" : true ,
4757
4757
"dependencies" : {
4758
4758
"brace-expansion" : " ^2.0.1"
13355
13355
"dev" : true
13356
13356
},
13357
13357
"minimatch" : {
13358
- "version" : " 5.0.1 " ,
13359
- "resolved" : " https://registry.npmjs.org/minimatch/-/minimatch-5.0.1 .tgz" ,
13360
- "integrity" : " sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g ==" ,
13358
+ "version" : " 5.1.0 " ,
13359
+ "resolved" : " https://registry.npmjs.org/minimatch/-/minimatch-5.1.0 .tgz" ,
13360
+ "integrity" : " sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg ==" ,
13361
13361
"requires" : {
13362
13362
"brace-expansion" : " ^2.0.1"
13363
13363
}
You can’t perform that action at this time.
0 commit comments