Skip to content

Commit

Permalink
Comply with DOM parser spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaneHannanAU authored and netroy committed Nov 14, 2018
1 parent f48e2f0 commit bce261d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/svg.js
@@ -1,6 +1,6 @@
'use strict';

var svgReg = /<svg\s([^>"']|"([^"\\]|\\[^])*"|'([^'\\]|\\[^])*')*>/;
var svgReg = /<svg\s([^>"']|"[^"]*"|'[^']*')*>/;
function isSVG (buffer) {
return svgReg.test(buffer);
}
Expand Down

0 comments on commit bce261d

Please sign in to comment.