summaryrefslogtreecommitdiff
path: root/lib/uri/common.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri/common.rb')
-rw-r--r--lib/uri/common.rb2
1 files changed, 1 insertions, 1 deletions
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 |
# ";" | ":" | "&" | "=" | "+" | "$" | "," )