Skip to content

Commit

Permalink
Define memGlob function
Browse files Browse the repository at this point in the history
  • Loading branch information
nafarlee committed Dec 6, 2023
1 parent b38976c commit b4ba7c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ async function fsGlob(patterns) {
});
}

function memGlob(patterns, source) {
return micromatch(source, patterns);
}

async function directMatch(patterns) {
const matches = await fsGlob(patterns);
core.debug(JSON.stringify({ patterns, matches }, null, 2));
Expand Down

0 comments on commit b4ba7c2

Please sign in to comment.