From a174c26067874efc07adeaf458349b2ba5764e5f Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Tue, 4 Dec 2018 15:46:10 -0800 Subject: [PATCH] =?UTF-8?q?fix=20another=20encoding=20bug...=F0=9F=A4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Closes #564 --- components/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Editor.js b/components/Editor.js index 622e29e..6a3ab44 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -144,7 +144,7 @@ class Editor extends React.Component { if (isPNG) { node.querySelectorAll('span[role="presentation"]').forEach(node => { - if (node.innerText && node.innerText.match(/%\d\S/)) { + if (node.innerText && node.innerText.match(/%\S\S/)) { map.set(node, node.innerText) node.innerText = encodeURIComponent(node.innerText) }