diff --git a/components/Editor.js b/components/Editor.js index cf396cd..d57a026 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(/%\S\S/)) { + if (node.innerText && node.innerText.match(/%[A-Za-z0-9]{2}/)) { map.set(node, node.innerText) node.innerText = encodeURIComponent(node.innerText) }