Skip to content

Commit

Permalink
Merge pull request #5 from lucagoslar/main
Browse files Browse the repository at this point in the history
making use of phosphor-icons latest release
  • Loading branch information
haruaki07 authored May 19, 2022
2 parents 4ae1b6d + 201c6c8 commit 1019463
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/lib
.DS_Store
2 changes: 1 addition & 1 deletion phosphor-icons
4 changes: 2 additions & 2 deletions scripts/testRegex.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { resolve } from "path";
(() => {
const weights = getWeights();
let patterns = {
xmlTag: { pattern: /^.*<\?xml.*/g, match: 0 },
svgTagOpen: { pattern: /<svg.*/g, match: 0 },
xmlTag: { pattern: /^.*<\?xml.*?>/g, match: 0 },
svgTagOpen: { pattern: /<svg.*?>/g, match: 0 },
svgTagClose: { pattern: /<\/svg>/g, match: 0 },
svgRectTag: {
pattern: /<rect width="25[\d,\.]+" height="25[\d,\.]+" fill="none".*\/>/g,
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function readSVG(filepath) {
return minify(
fs
.readFileSync(filepath, "utf-8")
.replace(/<svg.*/g, "")
.replace(/<svg.*?>/g, "")
.replace(/<\/svg>/g, ""),
{
collapseWhitespace: true,
Expand Down

0 comments on commit 1019463

Please sign in to comment.