summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorGravatar default2024-02-27 13:21:59 +0100
committerGravatar default2024-02-27 13:21:59 +0100
commit067747cc7cbfce5fd9f9ce2510a9d311f05b504a (patch)
tree00e07919ec7546f5fb193a7cbae9916c6a6956dd /format.c
parentUpdated TODO. (diff)
downloadpenes-snac2-067747cc7cbfce5fd9f9ce2510a9d311f05b504a.tar.gz
penes-snac2-067747cc7cbfce5fd9f9ce2510a9d311f05b504a.tar.xz
penes-snac2-067747cc7cbfce5fd9f9ce2510a9d311f05b504a.zip
Also trim , at the end of http links.
Diffstat (limited to '')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 33261a9..9944822 100644
--- a/format.c
+++ b/format.c
@@ -72,7 +72,7 @@ static xs_str *format_line(const char *line, xs_list **attach)
72 else 72 else
73 if (xs_startswith(v, "http")) { 73 if (xs_startswith(v, "http")) {
74 xs *u = xs_replace(v, "#", "#"); 74 xs *u = xs_replace(v, "#", "#");
75 xs *v2 = xs_strip_chars_i(xs_dup(u), ".)"); 75 xs *v2 = xs_strip_chars_i(xs_dup(u), ".,)");
76 76
77 const char *mime = xs_mime_by_ext(v2); 77 const char *mime = xs_mime_by_ext(v2);
78 78