File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4848 "clear:dist" : " rimraf ./dist" ,
4949 "release" : " pnpm build && changeset publish" ,
5050 "postinstall" : " git config blame.ignoreRevsFile .git-blame-ignore-revs" ,
51- "add-icons" : " cd src/icons && node add-new-icon.js && fix"
51+ "add-icons" : " cd src/icons && node add-new-icon.js && pnpm fix"
5252 },
5353 "publishConfig" : {
5454 "directory" : " dist"
Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ import prettier from 'prettier';
2727 let svgContent = fs . readFileSync ( svgFile , 'utf8' ) ;
2828
2929 // Replace '#43436B' with 'currentColor'
30- svgContent = svgContent . replace ( / ( # 4 3 4 3 6 B | # 0 0 0 | # 0 0 0 0 0 0 ) / g, 'currentColor' ) ;
30+ svgContent = svgContent . replace (
31+ / ( " # 4 3 4 3 6 B " | " # 0 0 0 " | " # 0 0 0 0 0 0 " | " b l a c k " ) / g,
32+ '"currentColor"' ,
33+ ) ;
3134
3235 // Ensure the <svg> tag has a viewBox attribute; if not, add one.
3336 const svgTagMatch = svgContent . match ( / < s v g \b ( [ ^ > ] * ) > / ) ;
You can’t perform that action at this time.
0 commit comments