diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-08 15:38:09 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-08 15:38:09 +0200 |
commit | c75a9c26b67581c81e86fdd5315e2feacf40cc6d (patch) | |
tree | f17ba179eea25077c05b62fd98e77c4493a1bcc9 | |
parent | b18302253c93727b28da8d128fbb204c21b62815 (diff) | |
download | em-master.tar.gz |
-rwxr-xr-x | emparse | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,11 +54,11 @@ function format(line) { for (i = 0; i <= n; i++) { if (w[i] == "") continue; - if (match(w[i], "^<(\\./.*|\\.\\./.*|#.*|.*/.*)>$")) + if (match(w[i], "^<(\\./.*|\\.\\./.*|#.*|.*/.*|mailto:.*)>$")) w[i] = link(substr(w[i], 5, RLENGTH-8)) - else if (match(w[i], "^<(\\./.*|\\.\\./.*|#.*|.*/.*)>[.,:;?!)]$")) + else if (match(w[i], "^<(\\./.*|\\.\\./.*|#.*|.*/.*|mailto:.*)>[.,:;?!)]$")) w[i] = link(substr(w[i], 5, RLENGTH-9)) substr(w[i], RLENGTH) - else if (match(w[i], "^<(\\./.*|\\.\\./.*|#.*|.*/.*)>\\)[.,:;?!]$")) + else if (match(w[i], "^<(\\./.*|\\.\\./.*|#.*|.*/.*|mailto:.*)>\\)[.,:;?!]$")) w[i] = link(substr(w[i], 5, RLENGTH-10)) substr(w[i], RLENGTH-1) if (match(w[i], "^\\[[0-9a-z]+\\]$")) |