зеркало из https://github.com/github/ruby.git
* lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
parenthesis. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7d63004fce
Коммит
a16c76f7c5
|
@ -1,3 +1,8 @@
|
|||
Mon Feb 18 16:30:18 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing
|
||||
parenthesis.
|
||||
|
||||
Mon Feb 18 12:32:24 2013 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* lib/ipaddr.rb (IPAddr#in6_addr): Fix the parser so that it can
|
||||
|
|
|
@ -549,7 +549,7 @@ class IPAddr
|
|||
left = $1
|
||||
right = $3 + '0:0'
|
||||
else
|
||||
left.count(':') <= ($1.empty? || $2.empty?) ? 8 : 7 or
|
||||
left.count(':') <= ($1.empty? || $2.empty? ? 8 : 7) or
|
||||
raise InvalidAddressError, "invalid address"
|
||||
left = $1
|
||||
right = $2
|
||||
|
|
Загрузка…
Ссылка в новой задаче