In posts, fixed bad link urls if written between parentheses.

This commit is contained in:
default 2024-01-14 14:25:51 +01:00
parent 7ca08aebd2
commit 33a0386a1e

View file

@ -72,7 +72,7 @@ static xs_str *format_line(const char *line, xs_list **attach)
else
if (xs_startswith(v, "http")) {
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);