From c75a9c26b67581c81e86fdd5315e2feacf40cc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 8 Jun 2021 15:38:09 +0200 Subject: emparse: Support mailto: links --- emparse | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'emparse') 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], "^<(\\./.*|\\.\\./.*|#.*|.*/.*)>$")) + 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]+\\]$")) -- cgit v1.2.3