summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-20 04:37:15 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-20 04:37:15 -0800
commit3f4d605546fc82a3cdce8056790f1bb140a62903 (patch)
tree17598b052be519dc5d6c61a55609ae04f56e47fb /js
parent775cf28a2f6045caf652108092ab79ead3bc0056 (diff)
Fixed escaping error in CDATA regex.
Caught by sjs! This also improves performance measurably.
Diffstat (limited to 'js')
-rw-r--r--js/lib/inlines.js2
1 files changed, 1 insertions, 1 deletions
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 = "</" + TAGNAME + "\\s*[>]";
var HTMLCOMMENT = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->";
var PROCESSINGINSTRUCTION = "[<][?].*?[?][>]";
var DECLARATION = "<![A-Z]+" + "\\s+[^>]*>";
-var CDATA = "<!\\[CDATA\\[[\\s\\S]*?\]\\]>";
+var CDATA = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";
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});";