From 3f4d605546fc82a3cdce8056790f1bb140a62903 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 20 Jan 2015 04:37:15 -0800 Subject: Fixed escaping error in CDATA regex. Caught by sjs! This also improves performance measurably. --- js/lib/inlines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/lib/inlines.js b/js/lib/inlines.js index 79d2c90..236fd5f 100644 --- a/js/lib/inlines.js +++ b/js/lib/inlines.js @@ -43,7 +43,7 @@ var CLOSETAG = "]"; var HTMLCOMMENT = "|"; var PROCESSINGINSTRUCTION = "[<][?].*?[?][>]"; var DECLARATION = "]*>"; -var CDATA = ""; +var CDATA = ""; var HTMLTAG = "(?:" + OPENTAG + "|" + CLOSETAG + "|" + HTMLCOMMENT + "|" + PROCESSINGINSTRUCTION + "|" + DECLARATION + "|" + CDATA + ")"; var ENTITY = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});"; -- cgit v1.2.3