From 8c6400ab2c16c232223c21e471213863a8622376 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 25 Mar 2022 14:11:09 +0530 Subject: [PATCH] utf-8 --> utf8 --- scripts/postcss/svg-colorizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postcss/svg-colorizer.js b/scripts/postcss/svg-colorizer.js index 1a659e6a..1895cfa0 100644 --- a/scripts/postcss/svg-colorizer.js +++ b/scripts/postcss/svg-colorizer.js @@ -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];