Add the apostrophe as another stop char for hashtags.

This commit is contained in:
default 2024-10-03 17:10:30 +02:00
parent 0e21b38807
commit 25ff20cdae

View File

@ -721,7 +721,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
/* use this same server */ /* use this same server */
def_srv = xs_dup(xs_dict_get(srv_config, "host")); def_srv = xs_dup(xs_dict_get(srv_config, "host"));
split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#[^ ,\\.:;<]+)"); split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#[^ ',\\.:;<]+)");
p = split; p = split;
while (xs_list_iter(&p, &v)) { while (xs_list_iter(&p, &v)) {