]> source.dussan.org Git - redmine.git/commitdiff
Allow textile mailto links (#3127).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Apr 2009 17:35:52 +0000 (17:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 7 Apr 2009 17:35:52 +0000 (17:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2664 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redcloth3.rb

index 9e63bf5acb349d2979a1c16815819fb13159f22d..e0dca80e24196ea058eb9630d93e4a49222992b7 100644 (file)
@@ -792,7 +792,7 @@ class RedCloth3 < String
             (?:\(([^)]+?)\)(?="))?     # $title
             ":
             (                          # $url
-            (\/|[a-zA-Z]+:\/\/|www\.)  # $proto
+            (\/|[a-zA-Z]+:\/\/|www\.|mailto:)  # $proto
             [\w\/]\S+?
             )               
             (\/)?                      # $slash