diff --git a/api/handlers/image.js b/api/handlers/image.js index 1b4cbab..163b018 100644 --- a/api/handlers/image.js +++ b/api/handlers/image.js @@ -26,7 +26,7 @@ module.exports = browser => async (req, res) => { // %[00 -> 19] cause failures if ( n.innerText && - node.innerText.match(/%\d\S/) && + n.innerText.match(/%\d\S/) && n.className && n.className.startsWith('cm-') // is CodeMirror primitive string ) {