File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,11 @@ class Minimatch {
168168 this . options = options
169169 this . set = [ ]
170170 this . pattern = pattern
171+ this . windowsPathsNoEscape = ! ! options . windowsPathsNoEscape ||
172+ options . allowWindowsEscape === false
173+ if ( this . windowsPathsNoEscape ) {
174+ this . pattern = this . pattern . replace ( / \\ / g, '/' )
175+ }
171176 this . regexp = null
172177 this . negate = false
173178 this . comment = false
Original file line number Diff line number Diff line change 22 "author" :
" Isaac Z. Schlueter <[email protected] > (http://blog.izs.me)" ,
33 "name" : " minimatch" ,
44 "description" : " a glob matcher in javascript" ,
5- "version" : " 5.0.1 " ,
5+ "version" : " 5.1.0 " ,
66 "repository" : {
77 "type" : " git" ,
88 "url" : " git://github.com/isaacs/minimatch.git"
Original file line number Diff line number Diff line change 47504750 "license" : " ISC"
47514751 },
47524752 "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 ==" ,
47564756 "inBundle" : true ,
47574757 "dependencies" : {
47584758 "brace-expansion" : " ^2.0.1"
1335513355 "dev" : true
1335613356 },
1335713357 "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 ==" ,
1336113361 "requires" : {
1336213362 "brace-expansion" : " ^2.0.1"
1336313363 }
You can’t perform that action at this time.
0 commit comments