From 68b18291acc84bc4068e531d3085bfda8a5419de Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 6 Dec 2010 01:41:10 +0000 Subject: * lib/uri/common.rb (URI::Parser#initialize_pattern): refix for restrict the pattern. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/uri') diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 0ffd6ddcc4..e2ccbdc846 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -260,7 +260,7 @@ module URI # hostname = *( domainlabel "." ) toplabel [ "." ] # reg-name = *( unreserved / pct-encoded / sub-delims ) # RFC3986 unless hostname - ret[:HOSTNAME] = hostname = "(?:[a-zA-Z0-9\\-._~!$&'()*+,;=]|%\\h\\h)*" + ret[:HOSTNAME] = hostname = "(?:[a-zA-Z0-9\\-.]|%\\h\\h)+" end # RFC 2373, APPENDIX B: -- cgit v1.2.3