From 7b20d8744ac79a1bc758666c37ccda65cfece244 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 4 Feb 2019 11:01:38 -0800 Subject: [PATCH] regex tweak --- components/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Editor.js b/components/Editor.js index 26a625f..b9b2d28 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -185,7 +185,7 @@ class Editor extends React.Component { .replace(/ /g, ' ') // https://github.com/tsayen/dom-to-image/blob/fae625bce0970b3a039671ea7f338d05ecb3d0e8/src/dom-to-image.js#L551 .replace(/%23/g, '#') - .replace(/%0A/, '\n') + .replace(/%0A/g, '\n') ) // https://stackoverflow.com/questions/7604436/xmlparseentityref-no-name-warnings-while-loading-xml-into-a-php-file .then(dataUrl => dataUrl.replace(/&(?!#?[a-z0-9]+;)/g, '&'))