commit 75408346f0e3ee3c6c6176665e8ce0d984f23d05 parent f521285d753c38ec99f5e982cbabf871ac107936 Author: default <nobody@localhost> Date: Tue, 4 Oct 2022 17:03:01 +0200 Minor tweak to url regex. Diffstat:
M | html.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html.c b/html.c @@ -25,7 +25,7 @@ d_char *not_really_markdown(char *content, d_char **f_content) { /* split by special markup */ xs *sm = xs_regex_split(content, - "(`[^`]+`|\\*\\*?[^\\*]+\\*?\\*|https?:/" "/[^ ]*)"); + "(`[^`]+`|\\*\\*?[^\\*]+\\*?\\*|https?:/" "/[^[:space:]]+)"); int n = 0; p = sm;