diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/rexml/parsers/baseparser.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Sat Aug 10 12:49:50 2013 Kouhei Sutou <kou@cozmixng.org> + + * lib/rexml/parsers/baseparser.rb + (REXML::Parsers::BaseParser::CDATA_END): Use "\A" instead of "^". + It is not an used constant but I fix it. (Or shuold I remove it?) + Sat Aug 10 12:47:19 2013 Kouhei Sutou <kou@cozmixng.org> * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser): diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index 5a0074e9f7..597109b76c 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -49,7 +49,7 @@ module REXML COMMENT_START = /\A<!--/u COMMENT_PATTERN = /<!--(.*?)-->/um CDATA_START = /\A<!\[CDATA\[/u - CDATA_END = /^\s*\]\s*>/um + CDATA_END = /\A\s*\]\s*>/um CDATA_PATTERN = /<!\[CDATA\[(.*?)\]\]>/um XMLDECL_START = /\A<\?xml\s/u; XMLDECL_PATTERN = /<\?xml\s+(.*?)\?>/um |