Skip to content

Commit 17cf82f

Browse files
committed
Fix Regexp used for manipulating quotes in image export routine
1 parent a51b91f commit 17cf82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/tosvg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Color = require('../components/color');
1818
var xmlnsNamespaces = require('../constants/xmlns_namespaces');
1919
var DOUBLEQUOTE_REGEX = /"/g;
2020
var DUMMY_SUB = 'TOBESTRIPPED';
21-
var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ')|(' + DUMMY_SUB + '")', 'g');
21+
var DUMMY_REGEX = new RegExp('("?' + DUMMY_SUB + '"?)', 'g');
2222

2323
function htmlEntityDecode(s) {
2424
var hiddenDiv = d3.select('body').append('div').style({display: 'none'}).html('');

0 commit comments

Comments
 (0)