fix filter regex for encoded characters

Closes #564 (again)
main
Mike Fix 6 years ago
parent d472434388
commit 4a00206526

@ -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)
}

Loading…
Cancel
Save