|
|
@ -26,11 +26,11 @@ module.exports = browser => async (req, res) => {
|
|
|
|
filter: n => {
|
|
|
|
filter: n => {
|
|
|
|
// %[00 -> 19] cause failures
|
|
|
|
// %[00 -> 19] cause failures
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
n.innerText && n.innerText.match(/%[0-1][0-9]/) &&
|
|
|
|
n.innerText && n.innerText.match(/%\S\S/) &&
|
|
|
|
n.className &&
|
|
|
|
n.className &&
|
|
|
|
n.className.startsWith('cm-') // is CodeMirror primitive string
|
|
|
|
n.className.startsWith('cm-') // is CodeMirror primitive string
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
n.innerText = n.innerText.replace('%', '%25')
|
|
|
|
n.innerText = encodeURIComponent(n.innerText)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (n.className) {
|
|
|
|
if (n.className) {
|
|
|
|
return String(n.className).indexOf('eliminateOnRender') < 0
|
|
|
|
return String(n.className).indexOf('eliminateOnRender') < 0
|
|
|
|