From 30d24065ed5f124b8cd230c30684af2af2e01df2 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 15 Jan 2022 13:40:03 -0500 Subject: [PATCH] chore: linter [skip ci] --- source/app/metrics/metadata.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs index c21b5d3c..d1a7125d 100644 --- a/source/app/metrics/metadata.mjs +++ b/source/app/metrics/metadata.mjs @@ -278,7 +278,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) { const partials = path.join(__templates, template, "partials") if ((fs.existsSync(partials)) && ((await fs.promises.lstat(partials)).isDirectory())) { const supported = [...await fs.promises.readdir(partials)] - compatibility[template] = !!supported.filter(id => id.match(new RegExp(`^${name}(?:[.][\s\S]+)?[.]ejs$`))).length + compatibility[template] = !!supported.filter(id => id.match(new RegExp(`^${name}(?:[.][\\s\\S]+)?[.]ejs$`))).length } }