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

* lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akira 2004-02-22 04:06:09 +00:00
parent 883857d842
commit 329b4782ff
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sun Feb 22 13:05:37 2004 akira yamada <akira@ruby-lang.org>
* lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
Sun Feb 22 12:58:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: use optparse instead of getopts.

View file

@ -59,6 +59,10 @@ module URI
\\?
(#{HEADER_PATTERN}(?:\\&#{HEADER_PATTERN})*) (?# 2: headers)
)?
(?:
\\#
(#{PATTERN::FRAGMENT}) (?# 3: fragment)
)?
\\z
", Regexp::EXTENDED, 'N').freeze
@ -228,6 +232,11 @@ module URI
'?' + @headers.collect{|x| x.join('=')}.join('&')
else
''
end +
if @fragment
'#' + @fragment
else
''
end
end