We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ab09f6 commit 5497365Copy full SHA for 5497365
1 file changed
utils/svg.js
@@ -28,9 +28,13 @@ const removeUnnecessaryAttrs = ($) => {
28
const normalize = (file) => {
29
const $ = removeUnnecessaryAttrs(load(file));
30
31
- return $.html()
32
- .replace('fill-rule', 'fillRule')
33
- .replace('xlink:href', 'xlinkHref');
+ const html = $.html()
+ .replace(new RegExp('fill-rule', 'g'), 'fillRule')
+ .replace(new RegExp('xlink:href', 'g'), 'xlinkHref')
34
+
35
+ console.log(html);
36
37
+ return html;
38
};
39
40
exports.minify = () => through((file, enc, cb) =>
0 commit comments