Skip to content
Permalink
Browse files Browse the repository at this point in the history
cdata regexp fix
  • Loading branch information
Vitaly Puzrin committed Jan 3, 2015
1 parent c0ccaa7 commit 89c8620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/html_re.js
Expand Up @@ -46,7 +46,7 @@ var close_tag = /<\/[A-Za-z][A-Za-z0-9]*\s*>/;
var comment = /<!--[\s\S]*?-->/;
var processing = /<[?].*?[?]>/;
var declaration = /<![A-Z]+\s+[^>]*>/;
var cdata = /<!\[CDATA\[([^\]]+|\][^\]]|\]\][^>])*\]\]>/;
var cdata = /<!\[CDATA\[[\s\S]*?\]\]>/;

var HTML_TAG_RE = replace(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)
('open_tag', open_tag)
Expand Down

0 comments on commit 89c8620

Please sign in to comment.