Skip to content

Commit

Permalink
Update scripts/utils.js
Browse files Browse the repository at this point in the history
Co-authored-by: SanD <[email protected]>
  • Loading branch information
tristen and AlexanderBelokon authored Jan 3, 2025
1 parent d27d711 commit c8e67e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit c8e67e7

Please sign in to comment.