[前][次][番号順一覧][スレッド一覧]

ruby-changes:30410

From: kou <ko1@a...>
Date: Sat, 10 Aug 2013 12:51:35 +0900 (JST)
Subject: [ruby-changes:30410] kou:r42489 (trunk): * lib/rexml/parsers/baseparser.rb

kou	2013-08-10 12:51:30 +0900 (Sat, 10 Aug 2013)

  New Revision: 42489

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42489

  Log:
    * 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?)

  Modified files:
    trunk/ChangeLog
    trunk/lib/rexml/parsers/baseparser.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42488)
+++ ChangeLog	(revision 42489)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug 10 12:49:50 2013  Kouhei Sutou  <kou@c...>
+
+	* 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@c...>
 
 	* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser):
Index: lib/rexml/parsers/baseparser.rb
===================================================================
--- lib/rexml/parsers/baseparser.rb	(revision 42488)
+++ lib/rexml/parsers/baseparser.rb	(revision 42489)
@@ -49,7 +49,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/parsers/baseparser.rb#L49
       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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]