diff options
| author | default <nobody@localhost> | 2024-11-16 07:25:25 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-11-16 07:25:25 +0100 |
| commit | 29caa37fd768df07de98c292c6db3196906cbf98 (patch) | |
| tree | 64d9286e797f959cf216efa55e9fc7f5144e2609 | |
| parent | f2213021c492e43479b5602e5dee87c4ee04a7c8 (diff) | |
Allow underscores in hashtags.
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 0b2fc6a..031b9ac 100644 --- a/activitypub.c +++ b/activitypub.c @@ -724,7 +724,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag) /* use this same server */ 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]+;|#[^[:punct:][:space:]]+)"); + split = xs_regex_split(content, "(@[A-Za-z0-9_]+(@[A-Za-z0-9\\.-]+)?|&#[0-9]+;|#(_|[^[:punct:][:space:]])+)"); p = split; while (xs_list_iter(&p, &v)) { |