Support mailto: in markdown links
authorChip Black <bytex64@bytex64.net>
Thu, 30 May 2013 22:50:17 +0000 (17:50 -0500)
committerChip Black <bytex64@bytex64.net>
Thu, 30 May 2013 22:50:17 +0000 (17:50 -0500)
www/jssrc/blerg/Util.js

index 51489c9..2734b36 100644 (file)
@@ -16,7 +16,7 @@ blerg.Util.formatLinkHooks = [
 ];
 
 blerg.Util.formatMarkdownLinks = function(l) {
-        m = l.match(/(\s[()\[\]{}]?|^)\[([^\]]+)\]\((https?:\/\/[a-zA-Z0-9.-]*[a-zA-Z0-9](\/[^)"]*?)?)(\s([^)]*))?\)/);
+        m = l.match(/(\s[()\[\]{}]?|^)\[([^\]]+)\]\((https?:\/\/[a-zA-Z0-9.-]*[a-zA-Z0-9](\/[^)"]*?)?|mailto:[^)"]*?)(\s([^)]*))?\)/);
         if (!m)
             return l;
         var whitespace = m[1];