diff options
-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 |