Skip to content

Commit

Permalink
Fix processing of empty icons
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Jan 26, 2024
1 parent da8f9f1 commit c432da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/node/build-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ function optimizeSVGs(src) {
let svgFile = dataOptimized.data;
svgFile = svgFile.replaceAll('#000', 'currentColor');
const hasStroke = svgFile.indexOf('stroke="currentColor"') > -1;
const isEmpty = filepath.indexOf(`icons${path.sep}empty`) > 1;
const isEmpty = filepath.indexOf(`${path.sep}empty-`) > 1;

const iconName = path.basename(filepath).replace('.svg', '');
const isLogo = iconName.indexOf(`logo-`) > -1 || iconName === 'logo';
const isClassic = filepath.indexOf(`theme-classic`) > 1;
Expand Down

0 comments on commit c432da0

Please sign in to comment.