diff --git a/index.js b/index.js index 584d278..2c9ec2f 100644 --- a/index.js +++ b/index.js @@ -12,10 +12,10 @@ var regexSequences = [ // Remove XML stuffs and comments [/<\?xml[\s\S]*?>/gi, ""], [//gi, ""], - [//gi, ""], + [//g, ""], // SVG XML -> HTML5 - [/\<([A-Za-z]+)([^\>]*)\/\>/g, "<$1$2>"], // convert self-closing XML SVG nodes to explicitly closed HTML5 SVG nodes + [/\<([a-z]+)([^\>]*)\/\>/gi, "<$1$2>"], // convert self-closing XML SVG nodes to explicitly closed HTML5 SVG nodes [/\s+/g, " "], // replace whitespace sequences with a single space [/\> \<"] // remove whitespace between tags ];