diff options
| author | 2024-10-03 20:49:11 +0200 | |
|---|---|---|
| committer | 2024-10-03 20:49:11 +0200 | |
| commit | b7e78e6016fba0865e329bb8d72e941e3103a047 (patch) | |
| tree | a28e96ccd845e3151f3f954df703dfa91f9f1c17 /activitypub.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-b7e78e6016fba0865e329bb8d72e941e3103a047.tar.gz snac2-b7e78e6016fba0865e329bb8d72e941e3103a047.tar.xz snac2-b7e78e6016fba0865e329bb8d72e941e3103a047.zip | |
More hashtag regex improvements.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 1b4ea03..babca3d 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -721,7 +721,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag) | |||
| 721 | /* use this same server */ | 721 | /* use this same server */ |
| 722 | def_srv = xs_dup(xs_dict_get(srv_config, "host")); | 722 | def_srv = xs_dup(xs_dict_get(srv_config, "host")); |
| 723 | 723 | ||
| 724 | split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#[^ ',\\.:;<]+)"); | 724 | split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#[^[:punct:][:space:]]+)"); |
| 725 | 725 | ||
| 726 | p = split; | 726 | p = split; |
| 727 | while (xs_list_iter(&p, &v)) { | 727 | while (xs_list_iter(&p, &v)) { |