From e3ad6c6b180e3141c436902ab87c99f93c6a8ffa Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Mon, 25 Feb 2013 11:05:26 +1100 Subject: [PATCH] Fix allowed block regexp. * Was not correctly matching full string only. --- source/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Editor.js b/source/Editor.js index 3f2ba54..f52609e 100644 --- a/source/Editor.js +++ b/source/Editor.js @@ -986,7 +986,7 @@ } }; - var allowedBlock = /^A(?:DDRESS|RTICLE|SIDE)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|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)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|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 fontSizes = { 1: 10,