Browse Source

cdata regexp fix

pull/25/head
Vitaly Puzrin 10 years ago
parent
commit
89c8620157
  1. 2
      lib/common/html_re.js

2
lib/common/html_re.js

@ -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)

Loading…
Cancel
Save