We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7e283a + 119ac91 commit bc0e06dCopy full SHA for bc0e06d
src/snapshot/svgtoimg.js
@@ -35,7 +35,7 @@ function svgToImg(opts) {
35
// url in svg are single quoted
36
// since we changed double to single
37
// we'll need to change these to double-quoted
38
- svg = svg.replace(/(\('#)(.*)('\))/gi, '(\"$2\")');
+ svg = svg.replace(/(\('#)([^']*)('\))/gi, '(\"$2\")');
39
// font names with spaces will be escaped single-quoted
40
41
svg = svg.replace(/(\\')/gi, '\"');
0 commit comments