Initial commit

This commit is contained in:
2024-11-03 17:41:45 +01:00
commit c1640c1754
8043 changed files with 775536 additions and 0 deletions

21
node_modules/@11ty/eleventy/src/Util/GlobMatcher.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
import micromatch from "micromatch";
import { TemplatePath } from "@11ty/eleventy-utils";
function isGlobMatch(filepath, globs = [], options = undefined) {
if (!filepath || !Array.isArray(globs) || globs.length === 0) {
return false;
}
let inputPath = TemplatePath.stripLeadingDotSlash(filepath);
let opts = Object.assign(
{
dot: true,
nocase: true, // insensitive
},
options,
);
return micromatch.isMatch(inputPath, globs, opts);
}
export { isGlobMatch };