diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-10 12:58:23 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-10 12:58:23 +0000 |
commit | ece4dc43e53c0cf12b4bf2ae772c332d0b9d6b6f (patch) | |
tree | cf6a5a506a399f7fa7765307f2c9f089095c4afc | |
parent | 7d21c237ccd46ec1d56639ce53b5882bf97d9de3 (diff) | |
download | ruby-ece4dc43e53c0cf12b4bf2ae772c332d0b9d6b6f.tar.gz |
* Forgot to update the MANIFEST, WRT the removal of files from the
rexml/encodings directory
* Missed a regexp speed optimization in rexml/parsers/baseparser.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | MANIFEST | 6 | ||||
-rw-r--r-- | lib/rexml/parsers/baseparser.rb | 3 |
2 files changed, 1 insertions, 8 deletions
@@ -235,18 +235,12 @@ lib/rexml/dtd/notationdecl.rb lib/rexml/element.rb lib/rexml/encoding.rb lib/rexml/encodings/EUC-JP.rb -lib/rexml/encodings/EUC-JP_decl.rb lib/rexml/encodings/ISO-8859-1.rb -lib/rexml/encodings/ISO-8859-1_decl.rb lib/rexml/encodings/SHIFT-JIS.rb lib/rexml/encodings/SHIFT_JIS.rb -lib/rexml/encodings/Shift-JIS_decl.rb lib/rexml/encodings/UNILE.rb -lib/rexml/encodings/UNILE_decl.rb lib/rexml/encodings/US-ASCII.rb -lib/rexml/encodings/US-ASCII_decl.rb lib/rexml/encodings/UTF-16.rb -lib/rexml/encodings/UTF-16_decl.rb lib/rexml/entity.rb lib/rexml/functions.rb lib/rexml/instruction.rb diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index 27c9642a68..276af03389 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -168,8 +168,7 @@ module REXML @source.read if @source.buffer.size==0 if @document_status == nil @source.consume( /^\s*/um ) - word = @source.match( /(<.*?)>/um ) - #word = @source.match_to( '>', /(<.*?)>/um ) + word = @source.match( /(<[^>]*)>/um ) word = word[1] unless word.nil? case word when COMMENT_START |