summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-10 12:58:23 +0000
committerser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-10 12:58:23 +0000
commite5cff158cf2bfd553227d5669f080e7c6d21c514 (patch)
treecf6a5a506a399f7fa7765307f2c9f089095c4afc /lib
parenta05226855c5262a26adb80a2dee3635e35bfb954 (diff)
downloadruby-e5cff158cf2bfd553227d5669f080e7c6d21c514.tar.gz
ruby-e5cff158cf2bfd553227d5669f080e7c6d21c514.tar.xz
ruby-e5cff158cf2bfd553227d5669f080e7c6d21c514.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rexml/parsers/baseparser.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb
index 27c9642a6..276af0338 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