From 136bec0d9823088a3dd888eae62ee57f5e066e50 Mon Sep 17 00:00:00 2001 From: akira Date: Mon, 8 Mar 2004 10:36:50 +0000 Subject: * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT}) -> (?::#{PORT}). [ruby-dev:23170] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/uri/common.rb b/lib/uri/common.rb index fbb3558a3..c9b3e0de7 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 | # ";" | ":" | "&" | "=" | "+" | "$" | "," ) -- cgit