From b4ba7c2d188a3bd33f7b86db66b89a036d765c95 Mon Sep 17 00:00:00 2001 From: Nicholas Farley Date: Wed, 6 Dec 2023 15:29:15 -0500 Subject: [PATCH] Define memGlob function --- main.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.mjs b/main.mjs index 11f485a..08d6723 100755 --- a/main.mjs +++ b/main.mjs @@ -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));