From a0ec5eada8394fc5b0272c82b4a8910ef21824c6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 31 May 2016 12:51:04 +0200 Subject: [PATCH] better fix for magicline filter --- www/pad/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/pad/main.js b/www/pad/main.js index b71ac111d..7f0ffacf5 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -50,7 +50,9 @@ define([ // return !(el.tagName === 'SPAN' && el.contentEditable === 'false'); var filter = (el.tagName === 'SPAN' && el.getAttribute('contentEditable') === 'false' && - /magicline/.test(el.getAttribute('style'))); + /dashed/.test(el.getAttribute('style')) && + /(rgb\(255|red)/.test(el.getAttribute('style'))); + ///magicline/.test(el.getAttribute('style'))); if (filter) { console.log("[hyperjson.serializer] prevented an element" + "from being serialized:", el);