Skip to content

Commit

Permalink
pattern startsWith instead of includes
Browse files Browse the repository at this point in the history
  • Loading branch information
rnsc committed Jul 13, 2021
1 parent 10c6df9 commit efa0e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function run(): Promise<void> {
const pattern = item
core.debug(`Test ${file.filename} against ${pattern}`)
core.debug(`current match value: ${match}`)
if (pattern.includes('!')) {
if (pattern.startsWith('!')) {
match = match && minimatch(file.filename, pattern, {matchBase: true, dot: true})
} else {
match = match || minimatch(file.filename, pattern, {matchBase: true, dot: true})
Expand Down

0 comments on commit efa0e8c

Please sign in to comment.