-
Notifications
You must be signed in to change notification settings - Fork 1.7k
@actions/glob: bump minimatch from v3.0.4 to v10.2.4 #2355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -303,7 +303,7 @@ describe('pattern', () => { | |
| expect(pattern.match(`${root}foo/bar/baz`)).toBeFalsy() | ||
| pattern = new Pattern(`${root}foo/b[!]r/b*`) | ||
| expect(pattern.searchPath).toBe(`${root}foo${path.sep}b!r`) | ||
| expect(pattern.match(`${root}foo/b!r/baz`)).toBeTruthy() | ||
| expect(pattern.match(`${root}foo/b!r/baz`)).toBeFalsy() | ||
| pattern = new Pattern(`${root}foo/b[[]ar/b*`) | ||
| expect(pattern.searchPath).toBe(`${root}foo${path.sep}b[ar`) | ||
| expect(pattern.match(`${root}foo/b[ar/baz`)).toBeTruthy() | ||
|
|
@@ -340,9 +340,18 @@ describe('pattern', () => { | |
| pattern = new Pattern('C:/foo/b\\[a]r/b*') | ||
| expect(pattern.searchPath).toBe(`C:\\foo\\b\\ar`) | ||
| expect(pattern.match('C:/foo/b/ar/baz')).toBeTruthy() | ||
|
|
||
| // Regression testing for minimatch v3 | ||
| // Historically, minimatch/glob had a bug when parsing a character class | ||
| // containing an escaped '!' (e.g. `[\\!]`). In some cases, the internal | ||
| // pattern construction would incorrectly insert the literal string | ||
| // "undefined" into the generated pattern/segment, which could make a | ||
| // pattern intended to match `b[\\!]r` also match a path segment like | ||
| // `b[undefined/!]r`. This test ensures that a pattern with a literal | ||
| // `[\\!]` in the directory name does *not* match such malformed paths. | ||
| pattern = new Pattern('C:/foo/b[\\!]r/b*') | ||
| expect(pattern.searchPath).toBe('C:\\foo\\b[\\!]r') | ||
| expect(pattern.match('C:/foo/b[undefined/!]r/baz')).toBeTruthy() // Note, "undefined" substr to accommodate a bug in Minimatch when nocase=true | ||
| expect(pattern.match('C:/foo/b[undefined/!]r/baz')).toBeFalsy() | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is a bug of minimatch v3. |
||
| } | ||
| }) | ||
| }) | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,6 @@ | |
| }, | ||
| "dependencies": { | ||
| "@actions/core": "^3.0.0", | ||
| "minimatch": "^3.0.4" | ||
| "minimatch": "^10.2.4" | ||
| } | ||
|
Comment on lines
46
to
49
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.