From 75408346f0e3ee3c6c6176665e8ce0d984f23d05 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 4 Oct 2022 17:03:01 +0200 Subject: [PATCH] Minor tweak to url regex. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index 3cf171e..894bbe6 100644 --- 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;