From 80a0920f5fb30fe8e05ba21fcc58c2de393e2ae1 Mon Sep 17 00:00:00 2001 From: akira Date: Mon, 8 Mar 2004 10:36:50 +0000 Subject: [PATCH] * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT}) -> (?::#{PORT}). [ruby-dev:23170] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/uri/common.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1e47a27a09..d74838052f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 8 19:35:13 2004 akira yamada + + * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT}) + -> (?::#{PORT}). [ruby-dev:23170] + Mon Mar 8 15:03:24 Hirokazu Yamamoto * dir.c (range): treat incomplete '[' as ordinary character (like diff --git a/lib/uri/common.rb b/lib/uri/common.rb index fbb3558a32..c9b3e0de70 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -90,7 +90,7 @@ module URI # port = *digit PORT = "\d*" # hostport = host [ ":" port ] - HOSTPORT = "#{HOST}(?:#{PORT})?" + HOSTPORT = "#{HOST}(?::#{PORT})?" # userinfo = *( unreserved | escaped | # ";" | ":" | "&" | "=" | "+" | "$" | "," )