File tree Expand file tree Collapse file tree 4 files changed +175
-11718
lines changed
Expand file tree Collapse file tree 4 files changed +175
-11718
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ ignore:
55 SNYK-JS-TAR-15307072:
66 - 'snyk-nodejs-lockfile-parser > @yarnpkg/core > tar':
77 reason: 'Indirect dependency from snyk-nodejs-lockfile-parser, waiting for upstream fix'
8- expires: 2026-04-03T00 :00:00.000Z
8+ expires: 2026-05-06T00 :00:00.000Z
99 SNYK-JS-TAR-15416075:
1010 - 'snyk-nodejs-lockfile-parser > @yarnpkg/core > tar':
1111 reason: 'Indirect dependency from snyk-nodejs-lockfile-parser, waiting for upstream fix'
12- expires: 2026-04-03T00 :00:00.000Z
12+ expires: 2026-05-06T00 :00:00.000Z
1313 SNYK-JS-TAR-15456201:
1414 - 'snyk-nodejs-lockfile-parser > @yarnpkg/core > tar':
1515 reason: 'Indirect dependency from snyk-nodejs-lockfile-parser, waiting for upstream fix'
16- expires: 2026-04-03T00 :00:00.000Z
16+ expires: 2026-05-06T00 :00:00.000Z
1717 SNYK-JS-LODASH-15869625:
1818 - '*':
1919 reason: 'Indirect dependency, waiting for upstream fix'
Original file line number Diff line number Diff line change 1- import * as minimatch from "minimatch" ;
1+ import { minimatch , MinimatchOptions } from "minimatch" ;
22import * as path from "path" ;
33
44import { ExtractAction , ExtractedLayers } from "../../extractor/types" ;
@@ -13,12 +13,17 @@ function generatePathMatcher(
1313 globsInclude : string [ ] ,
1414 globsExclude : string [ ] ,
1515) : ( filePath : string ) => boolean {
16+ const matchOptions : MinimatchOptions = {
17+ windowsPathsNoEscape : true ,
18+ optimizationLevel : 0 ,
19+ } ;
20+
1621 return ( filePath : string ) : boolean => {
17- if ( globsExclude . some ( ( glob ) => minimatch ( filePath , glob ) ) ) {
22+ if ( globsExclude . some ( ( glob ) => minimatch ( filePath , glob , matchOptions ) ) ) {
1823 return false ;
1924 }
2025
21- return globsInclude . some ( ( glob ) => minimatch ( filePath , glob ) ) ;
26+ return globsInclude . some ( ( glob ) => minimatch ( filePath , glob , matchOptions ) ) ;
2227 } ;
2328}
2429
You can’t perform that action at this time.
0 commit comments