aboutsummaryrefslogtreecommitdiff
path: root/emparse
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-08 15:38:09 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-08 15:38:09 +0200
commitc75a9c26b67581c81e86fdd5315e2feacf40cc6d (patch)
treef17ba179eea25077c05b62fd98e77c4493a1bcc9 /emparse
parentb18302253c93727b28da8d128fbb204c21b62815 (diff)
downloadem-c75a9c26b67581c81e86fdd5315e2feacf40cc6d.tar.gz
emparse: Support mailto: linksHEADmaster
Diffstat (limited to 'emparse')
-rwxr-xr-xemparse6
1 files changed, 3 insertions, 3 deletions
diff --git a/emparse b/emparse
index 9594f82..4ffc848 100755
--- a/emparse
+++ b/emparse
@@ -54,11 +54,11 @@ function format(line) {
for (i = 0; i <= n; i++) {
if (w[i] == "") continue;
- if (match(w[i], "^&lt;(\\./.*|\\.\\./.*|#.*|.*/.*)&gt;$"))
+ if (match(w[i], "^&lt;(\\./.*|\\.\\./.*|#.*|.*/.*|mailto:.*)&gt;$"))
w[i] = link(substr(w[i], 5, RLENGTH-8))
- else if (match(w[i], "^&lt;(\\./.*|\\.\\./.*|#.*|.*/.*)&gt;[.,:;?!)]$"))
+ else if (match(w[i], "^&lt;(\\./.*|\\.\\./.*|#.*|.*/.*|mailto:.*)&gt;[.,:;?!)]$"))
w[i] = link(substr(w[i], 5, RLENGTH-9)) substr(w[i], RLENGTH)
- else if (match(w[i], "^&lt;(\\./.*|\\.\\./.*|#.*|.*/.*)&gt;\\)[.,:;?!]$"))
+ else if (match(w[i], "^&lt;(\\./.*|\\.\\./.*|#.*|.*/.*|mailto:.*)&gt;\\)[.,:;?!]$"))
w[i] = link(substr(w[i], 5, RLENGTH-10)) substr(w[i], RLENGTH-1)
if (match(w[i], "^\\[[0-9a-z]+\\]$"))