commit 418581a
grunfink
·
2025-05-11 16:59:28 +0000 UTC
parent 0d0f34c
Minor tweak to link extraction regex.
1 files changed,
+1,
-1
+1,
-1
1@@ -3037,7 +3037,7 @@ void process_queue_item(xs_dict *q_item)
2 const char *content = xs_dict_get(msg, "content");
3
4 if (xs_is_string(source) && xs_is_string(content)) {
5- xs *links = xs_regex_select(content, "\"https?[^\"]+");
6+ xs *links = xs_regex_select(content, "\"https?:/" "/[^\"]+");
7 const char *link;
8
9 xs_list_foreach(links, link) {