mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
-> (?::#{PORT}). [ruby-dev:23170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7a1a184cbc
commit
0477d9674e
2 changed files with 6 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ module URI
|
|||
# port = *digit
|
||||
PORT = "\d*"
|
||||
# hostport = host [ ":" port ]
|
||||
HOSTPORT = "#{HOST}(?:#{PORT})?"
|
||||
HOSTPORT = "#{HOST}(?::#{PORT})?"
|
||||
|
||||
# userinfo = *( unreserved | escaped |
|
||||
# ";" | ":" | "&" | "=" | "+" | "$" | "," )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue