diff options
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/parsers/baseparser.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |