mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
should escape dot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
53f6129bbe
commit
dcb796c8d5
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
require "rexml/document"
|
require "rexml/document"
|
||||||
require "rexml/streamlistener"
|
require "rexml/streamlistener"
|
||||||
|
|
||||||
/\A(\d+)\.(\d+)(?:.\d+)+\z/ =~ REXML::Version
|
/\A(\d+)\.(\d+)(?:\.\d+)+\z/ =~ REXML::Version
|
||||||
if ([$1.to_i, $2.to_i] <=> [2, 5]) < 0
|
if ([$1.to_i, $2.to_i] <=> [2, 5]) < 0
|
||||||
raise LoadError, "needs REXML 2.5 or later (#{REXML::Version})"
|
raise LoadError, "needs REXML 2.5 or later (#{REXML::Version})"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue