Преглед изворни кода

Minor tweak to link extraction regex.

grunfink пре 1 година
родитељ
комит
418581a71d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -3037,7 +3037,7 @@ void process_queue_item(xs_dict *q_item)
         const char *content = xs_dict_get(msg, "content");
 
         if (xs_is_string(source) && xs_is_string(content)) {
-            xs *links = xs_regex_select(content, "\"https?[^\"]+");
+            xs *links = xs_regex_select(content, "\"https?:/" "/[^\"]+");
             const char *link;
 
             xs_list_foreach(links, link) {