diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/uri/common.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Mar 8 19:32:28 2004 akira yamada <akira@ruby-lang.org> + + * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT}) + -> (?::#{PORT}). [ruby-dev:23170] + Mon Mar 8 15:31:41 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * 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 | # ";" | ":" | "&" | "=" | "+" | "$" | "," ) |