projects
/
blerg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9cdf4e1
)
Support mailto: in markdown links
author
Chip Black
<bytex64@bytex64.net>
Thu, 30 May 2013 22:50:17 +0000
(17:50 -0500)
committer
Chip Black
<bytex64@bytex64.net>
Thu, 30 May 2013 22:50:17 +0000
(17:50 -0500)
www/jssrc/blerg/Util.js
patch
|
blob
|
history
diff --git
a/www/jssrc/blerg/Util.js
b/www/jssrc/blerg/Util.js
index
51489c9
..
2734b36
100644
(file)
--- a/
www/jssrc/blerg/Util.js
+++ b/
www/jssrc/blerg/Util.js
@@
-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];