diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rexml/parsers/baseparser.rb | 2 | ||||
| -rw-r--r-- | lib/rexml/rexml.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index fc2354a67f..c791b476f9 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -53,7 +53,7 @@ module REXML VERSION = /\bversion\s*=\s*["'](.*?)['"]/um ENCODING = /\bencoding\s*=\s*["'](.*?)['"]/um - STANDALONE = /\bstandalone\s*=\s["'](.*?)['"]/um + STANDALONE = /\bstandalone\s*=\s*["'](.*?)['"]/um ENTITY_START = /^\s*<!ENTITY/ IDENTITY = /^([!\*\w\-]+)(\s+#{NCNAME_STR})?(\s+["'](.*?)['"])?(\s+['"](.*?)["'])?/u diff --git a/lib/rexml/rexml.rb b/lib/rexml/rexml.rb index 95bc2a7f6d..d41718f9e7 100644 --- a/lib/rexml/rexml.rb +++ b/lib/rexml/rexml.rb @@ -25,7 +25,7 @@ module REXML COPYRIGHT = "Copyright \xC2\xA9 2001-2006 Sean Russell <ser@germane-software.com>" VERSION = "3.1.7.3" DATE = "2007/275" - REVISION = "$Revision$".gsub(/\$Revision:|\$/,'').strip + REVISION = %w$Revision$[1] || '' Copyright = COPYRIGHT Version = VERSION |
