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 | # ";" | ":" | "&" | "=" | "+" | "$" | "," )