diff options
| author | 2024-02-27 13:21:59 +0100 | |
|---|---|---|
| committer | 2024-02-27 13:21:59 +0100 | |
| commit | 067747cc7cbfce5fd9f9ce2510a9d311f05b504a (patch) | |
| tree | 00e07919ec7546f5fb193a7cbae9916c6a6956dd /format.c | |
| parent | Updated TODO. (diff) | |
| download | penes-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||