mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Also trim , at the end of http links.
This commit is contained in:
parent
336f731a51
commit
067747cc7c
1 changed files with 1 additions and 1 deletions
2
format.c
2
format.c
|
@ -72,7 +72,7 @@ static xs_str *format_line(const char *line, xs_list **attach)
|
||||||
else
|
else
|
||||||
if (xs_startswith(v, "http")) {
|
if (xs_startswith(v, "http")) {
|
||||||
xs *u = xs_replace(v, "#", "#");
|
xs *u = xs_replace(v, "#", "#");
|
||||||
xs *v2 = xs_strip_chars_i(xs_dup(u), ".)");
|
xs *v2 = xs_strip_chars_i(xs_dup(u), ".,)");
|
||||||
|
|
||||||
const char *mime = xs_mime_by_ext(v2);
|
const char *mime = xs_mime_by_ext(v2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue