summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/uri/common.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 12e2477a99..925789055a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 |
# ";" | ":" | "&" | "=" | "+" | "$" | "," )