Skip to content

Commit

Permalink
Refactor copySvgFiles function to use sanitizeName for improved file …
Browse files Browse the repository at this point in the history
…name handling
  • Loading branch information
hiletmis committed Feb 26, 2025
1 parent ac33930 commit 224669c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async function copySvgFiles(files, logosDir, prefix = '') {
files.forEach(async (file) => {
const isSupported =
supportList.some(
(item) => item.toLowerCase() === file.replace('.svg', '').replace('Chain', '').toLowerCase()
(item) => sanitizeName(item).toLowerCase() === file.replace('.svg', '').replace('Chain', '').toLowerCase()
) || exceptions.some((item) => file.includes(item));
if (!isSupported) return;
await fs.copyFile(`./optimized/${prefix}/${file}`, `${logosDir}/${file}`);
Expand Down

0 comments on commit 224669c

Please sign in to comment.