summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-14 14:25:51 +0100
committerdefault <nobody@localhost>2024-01-14 14:25:51 +0100
commit33a0386a1ee4aad045260b7dd36c6d4d5dea087c (patch)
tree21a7f7501609689e77aa0bc685c73c206e6c62be /format.c
parent7ca08aebd245dc7116113bae97e31881fcc09eb0 (diff)
In posts, fixed bad link urls if written between parentheses.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 485a26a..33261a9 100644
--- a/format.c
+++ b/format.c
@@ -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, "#", "&#35;");
- 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);