Skip to content

Commit bc0e06d

Browse files
authored
Merge pull request #1740 from bobisch/master
Fix RE used to correct quotes used in URLs for IE.
2 parents d7e283a + 119ac91 commit bc0e06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/svgtoimg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function svgToImg(opts) {
3535
// url in svg are single quoted
3636
// since we changed double to single
3737
// we'll need to change these to double-quoted
38-
svg = svg.replace(/(\('#)(.*)('\))/gi, '(\"$2\")');
38+
svg = svg.replace(/(\('#)([^']*)('\))/gi, '(\"$2\")');
3939
// font names with spaces will be escaped single-quoted
4040
// we'll need to change these to double-quoted
4141
svg = svg.replace(/(\\')/gi, '\"');

0 commit comments

Comments
 (0)