Skip to content

Commit 3f5a419

Browse files
committed
chore: merge main
2 parents 7b88c17 + f9e49ac commit 3f5a419

File tree

4 files changed

+175
-11718
lines changed

4 files changed

+175
-11718
lines changed

.snyk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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'

lib/inputs/file-pattern/static.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as minimatch from "minimatch";
1+
import { minimatch, MinimatchOptions } from "minimatch";
22
import * as path from "path";
33

44
import { 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

0 commit comments

Comments
 (0)