We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51b91f commit 17cf82fCopy full SHA for 17cf82f
src/snapshot/tosvg.js
@@ -18,7 +18,7 @@ var Color = require('../components/color');
18
var xmlnsNamespaces = require('../constants/xmlns_namespaces');
19
var DOUBLEQUOTE_REGEX = /"/g;
20
var DUMMY_SUB = 'TOBESTRIPPED';
21
-var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ')|(' + DUMMY_SUB + '")', 'g');
+var DUMMY_REGEX = new RegExp('("?' + DUMMY_SUB + '"?)', 'g');
22
23
function htmlEntityDecode(s) {
24
var hiddenDiv = d3.select('body').append('div').style({display: 'none'}).html('');
0 commit comments