mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
More hashtag regex improvements.
This commit is contained in:
parent
d8487e5c9b
commit
b7e78e6016
1 changed files with 1 additions and 1 deletions
|
@ -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]+;|#[^[:punct:][:space:]]+)");
|
||||||
|
|
||||||
p = split;
|
p = split;
|
||||||
while (xs_list_iter(&p, &v)) {
|
while (xs_list_iter(&p, &v)) {
|
||||||
|
|
Loading…
Reference in a new issue