diff options
| author | 2024-01-14 14:25:51 +0100 | |
|---|---|---|
| committer | 2024-01-14 14:25:51 +0100 | |
| commit | 33a0386a1ee4aad045260b7dd36c6d4d5dea087c (patch) | |
| tree | 21a7f7501609689e77aa0bc685c73c206e6c62be /format.c | |
| parent | Fixed crashes in command-line options. (diff) | |
| download | snac2-33a0386a1ee4aad045260b7dd36c6d4d5dea087c.tar.gz snac2-33a0386a1ee4aad045260b7dd36c6d4d5dea087c.tar.xz snac2-33a0386a1ee4aad045260b7dd36c6d4d5dea087c.zip | |
In posts, fixed bad link urls if written between parentheses.
Diffstat (limited to 'format.c')
| -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 | ||