1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME

regular expression.  a patch from Ueda Satoshi
  <s-ueda AT livedoor.jp>.  [ruby-dev:32514]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-12-10 09:31:55 +00:00
parent ee1717dc3e
commit 39a6f7e34e
3 changed files with 10 additions and 4 deletions

View file

@ -110,7 +110,7 @@ module URI
SERVER = "(?:#{USERINFO}@)?#{HOSTPORT}"
# reg_name = 1*( unreserved | escaped | "$" | "," |
# ";" | ":" | "@" | "&" | "=" | "+" )
REG_NAME = "(?:[#{UNRESERVED}$,;+@&=+]|#{ESCAPED})+"
REG_NAME = "(?:[#{UNRESERVED}$,;:@&=+]|#{ESCAPED})+"
# authority = server | reg_name
AUTHORITY = "(?:#{SERVER}|#{REG_NAME})"