Explorar o código

Minor tweak to url regex.

default %!s(int64=3) %!d(string=hai) anos
pai
achega
75408346f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      html.c

+ 1 - 1
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;