summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/uri/mailto.rb4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b2eaaef3b..7d0ac7bac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu May 13 13:01:30 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
+
Thu May 13 11:04:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* pack.c (pack_pack): always add with null for 'Z'.
diff --git a/lib/uri/mailto.rb b/lib/uri/mailto.rb
index aec5d11d2..0c93ae1c0 100644
--- a/lib/uri/mailto.rb
+++ b/lib/uri/mailto.rb
@@ -50,6 +50,10 @@ module URI
\\?
(#{HEADER_PATTERN}(?:\\&#{HEADER_PATTERN})*) (?# 2: headers)
)?
+ (?:
+ \\#
+ (#{PATTERN::FRAGMENT}) (?# 3: fragment)
+ )?
\\z
", Regexp::EXTENDED, 'N').freeze
# :startdoc: