Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
anc95 committed Dec 11, 2024
1 parent a9c4098 commit a3bd2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -150537,7 +150537,7 @@ exports.robot = robot;
const matchPatterns = (patterns, path) => {
return patterns.some((pattern) => {
try {
return (0, minimatch_1.minimatch)(path, pattern.startsWith('/') || pattern.startsWith('**') ? pattern : `**/${pattern}`);
return (0, minimatch_1.minimatch)(path, pattern.startsWith('/') ? "**" + pattern : pattern.startsWith("**") ? pattern : "**/" + pattern);
}
catch {
// if the pattern is not a valid glob pattern, try to match it as a regular expression
Expand Down

0 comments on commit a3bd2b1

Please sign in to comment.