Skip to content

Commit

Permalink
🎨 Update favicon plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
btjanaka committed Dec 17, 2021
1 parent 2923e09 commit 0bc06bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eleventy/favicon-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function generateAppleFavicon(
.readFile(sourcePath, "utf8")
.then((s) => {
// Removes the XML declaration. Test regexes here: https://regex101.com
s = s.replace(/\<.*xml[^>]*\>/, "");
s = s.replace(/^\<[^<]*xml[^>]*\>/, "");

// Scale so there can be padding.
const scale = (180 - 2 * pad) / Math.max(width, height);
Expand Down

0 comments on commit 0bc06bc

Please sign in to comment.