Skip to content

Commit

Permalink
IconGenerator: Fixed double spaces in export
Browse files Browse the repository at this point in the history
  • Loading branch information
markwoerdenweber committed Nov 14, 2024
1 parent 1dd3a83 commit a489edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Smartstore.IconGenerator/icon-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class IconGenerator {

// Retrieve svg code without the namespace.
for (const part of symbol.children) {
drawCode += "\n\t\t" + part.outerHTML.replaceAll(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g, '');
drawCode += "\n\t\t" + part.outerHTML.replaceAll(/\s+xmlns="http:\/\/www.w3.org\/2000\/svg"/g, '');
}

// Check if the icon already exists in the set.
Expand Down

0 comments on commit a489edf

Please sign in to comment.