forked from mystiq/hydrogen-web
utf-8 --> utf8
This commit is contained in:
parent
5d5eb93baa
commit
8c6400ab2c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ const path = require("path");
|
|||
* @param {string} secondaryColor Secondary color for the new svg
|
||||
*/
|
||||
module.exports.buildColorizedSVG = function (svgLocation, primaryColor, secondaryColor) {
|
||||
const svgCode = fs.readFileSync(svgLocation, { encoding: "utf-8"});
|
||||
const svgCode = fs.readFileSync(svgLocation, { encoding: "utf8"});
|
||||
let coloredSVGCode = svgCode.replaceAll("#ff00ff", primaryColor);
|
||||
coloredSVGCode = coloredSVGCode.replaceAll("#00ffff", secondaryColor);
|
||||
const fileName = svgLocation.match(/.+\/(.+\.svg)/)[1];
|
||||
|
|
Loading…
Reference in a new issue