commit de81a9c

grunfink  ·  2026-08-03 02:54:03 +0000 UTC
parent cce687b
When mentioning, allow users with - in their names.
1 files changed,  +1, -1
+1, -1
1@@ -940,7 +940,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)) {