Skip to content

Commit

Permalink
🐛 Fix fill fulled attribute in svg tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiet Le committed Dec 5, 2024
1 parent f6d4468 commit 00ec834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "optimize-icons-cli",
"version": "1.1.6",
"version": "1.1.7",
"description": "CLI tool for optimizing icons",
"main": "dist/cli.js",
"types": "dist/types/index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions src/core/icon-optimize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export class IconOptimizer {
totalCount++;

if (this.usedIcons.has(id)) {
const cleanedAttrs = svgFormatter.cleanAttributes(attrs, id);
icons.push(` <${tagType} ${cleanedAttrs}>${paths}</${tagType}>`);
icons.push(` <${tagType} ${attrs}>${paths}</${tagType}>`);
} else {
removedCount++;
this.logger.log(`Removed unused icon: ${id}`, true);
Expand Down

0 comments on commit 00ec834

Please sign in to comment.