commit 29caa37
default
·
2024-11-16 06:25:25 +0000 UTC
parent f221302
Allow underscores in hashtags.
1 files changed,
+1,
-1
+1,
-1
1@@ -724,7 +724,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
2 /* use this same server */
3 def_srv = xs_dup(xs_dict_get(srv_config, "host"));
4
5- split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#[^[:punct:][:space:]]+)");
6+ split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#(_|[^[:punct:][:space:]])+)");
7
8 p = split;
9 while (xs_list_iter(&p, &v)) {