diff options
-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]+\\]$")) |