From 68618b1e5d051c77c2436be29cd1d2c2fbf918a0 Mon Sep 17 00:00:00 2001
From: selvan
Date: Thu, 29 Sep 2016 11:36:14 +0530
Subject: [PATCH] Preserve cell width while copy & pasting from Goolgle Sheet -
added COLGROUP and COL as part of 'allowedBlock' regex
---
source/Clean.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/Clean.js b/source/Clean.js
index 6590e2c..b03b3b8 100644
--- a/source/Clean.js
+++ b/source/Clean.js
@@ -178,7 +178,7 @@ var stylesRewriters = {
}
};
-var allowedBlock = /^(?:A(?:DDRESS|RTICLE|SIDE|UDIO)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|IGCAPTION|OOTER)|H[1-6]|HEADER|L(?:ABEL|EGEND|I)|O(?:L|UTPUT)|P(?:RE)?|SECTION|T(?:ABLE|BODY|D|FOOT|H|HEAD|R)|UL)$/;
+var allowedBlock = /^(?:A(?:DDRESS|RTICLE|SIDE|UDIO)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|IGCAPTION|OOTER)|H[1-6]|HEADER|L(?:ABEL|EGEND|I)|O(?:L|UTPUT)|P(?:RE)?|SECTION|T(?:ABLE|BODY|D|FOOT|H|HEAD|R)|COL(?:GROUP)?|UL)$/;
var blacklist = /^(?:HEAD|META|STYLE)/;