mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
7d63004fce
commit
a16c76f7c5
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue