summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-04 17:03:01 +0200
committerdefault <nobody@localhost>2022-10-04 17:03:01 +0200
commit75408346f0e3ee3c6c6176665e8ce0d984f23d05 (patch)
tree877a40d38a2d8b622ceb57ca031e7df78c88e3ee /html.c
parentf521285d753c38ec99f5e982cbabf871ac107936 (diff)
Minor tweak to url regex.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
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;