Skip to content

Commit

Permalink
Fix removal of <?xml header without encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Jan 3, 2020
1 parent fcf536c commit 1aa1f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transformer.re
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let transformSvg = (svg, removeFill) => {
let transformedSvg =
svg
|> Js.String.replaceByRe([%re "/\\sversion=\"1.1\"/g"], "")
|> Js.String.replace("<?xml version=\"1.0\" encoding=\"UTF-8\"?>", "")
|> Js.String.replaceByRe([%re "/<\\?xml(.*)\\?>/g"], "")
|> Js.String.replaceByRe(
[%re "/\\sxmlns=\"http:\\/\\/www\\.w3\\.org\\/2000\\/svg\"/g"],
"",
Expand Down

0 comments on commit 1aa1f97

Please sign in to comment.