From c8e67e7d5aee28b2d1c769e996424064c9aa2af8 Mon Sep 17 00:00:00 2001 From: Tristen Brown Date: Fri, 3 Jan 2025 15:19:27 -0500 Subject: [PATCH] Update scripts/utils.js Co-authored-by: SanD --- scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 8101a543..b87b9509 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -10,7 +10,7 @@ const builder = new xml2js.Builder({ async function gatherIcons(iconPath) { const files = await readdir(iconPath); - const svgFiles = files.filter(f => f.indexOf('.svg') !== -1); + const svgFiles = files.filter(f => f.endsWith('.svg')); return Promise.all( svgFiles.map(f => readFile(path.join(iconPath, f), 'utf8'))