diff --git a/ChangeLog b/ChangeLog index 832cf16b3f..6db336a520 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Oct 9 22:56:12 2006 Yukihiro Matsumoto + + * lib/rexml/encoding.rb (REXML::Encoding::check_encoding): spaces + are allowed around equal sign. [ruby-core:09032] + + * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser): ditto. + Mon Oct 9 01:56:34 2006 Yukihiro Matsumoto * eval.c (rb_obj_define_method): add new method diff --git a/lib/rexml/encoding.rb b/lib/rexml/encoding.rb index 51742faf44..3a92080b13 100644 --- a/lib/rexml/encoding.rb +++ b/lib/rexml/encoding.rb @@ -58,7 +58,7 @@ module REXML # We have to recognize UTF-16, LSB UTF-16, and UTF-8 return UTF_16 if /\A\xfe\xff/n =~ str return UNILE if /\A\xff\xfe/n =~ str - str =~ /^\s*/um VERSION = /\bversion\s*=\s*["'](.*?)['"]/um - ENCODING = /\bencoding=["'](.*?)['"]/um - STANDALONE = /\bstandalone=["'](.*?)['"]/um + ENCODING = /\bencoding\s*=\s*["'](.*?)['"]/um + STANDALONE = /\bstandalone\s*=\s["'](.*?)['"]/um ENTITY_START = /^\s*