diff options
| author | 2024-10-03 17:10:30 +0200 | |
|---|---|---|
| committer | 2024-10-03 17:10:30 +0200 | |
| commit | 25ff20cdae74ecc083135a6c1df88717c18d3d28 (patch) | |
| tree | 7b901715eddbc340cd10a3dc1904c2000d175f81 | |
| parent | Updated TODO. (diff) | |
| download | snac2-25ff20cdae74ecc083135a6c1df88717c18d3d28.tar.gz snac2-25ff20cdae74ecc083135a6c1df88717c18d3d28.tar.xz snac2-25ff20cdae74ecc083135a6c1df88717c18d3d28.zip | |
Add the apostrophe as another stop char for hashtags.
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index de42735..1b4ea03 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]+;|#[^ ',\\.:;<]+)"); |
| 725 | 725 | ||
| 726 | p = split; | 726 | p = split; |
| 727 | while (xs_list_iter(&p, &v)) { | 727 | while (xs_list_iter(&p, &v)) { |