diff options
| author | 2024-12-21 18:40:09 +0100 | |
|---|---|---|
| committer | 2024-12-21 18:40:09 +0100 | |
| commit | 240f212252f9cc2a16d2accda7c619a90702da9c (patch) | |
| tree | f67986ceff921da43fadcf149fe49c8b6965d9da | |
| parent | If an attachment includes an icon, show it. (diff) | |
| download | snac2-240f212252f9cc2a16d2accda7c619a90702da9c.tar.gz snac2-240f212252f9cc2a16d2accda7c619a90702da9c.tar.xz snac2-240f212252f9cc2a16d2accda7c619a90702da9c.zip | |
Account names can also contain periods (in account search).
| -rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -3080,7 +3080,7 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3080 | } | 3080 | } |
| 3081 | 3081 | ||
| 3082 | if (q && *q) { | 3082 | if (q && *q) { |
| 3083 | if (xs_regex_match(q, "^@?[a-zA-Z0-9_]+@[a-zA-Z0-9-]+\\.")) { | 3083 | if (xs_regex_match(q, "^@?[a-zA-Z0-9._]+@[a-zA-Z0-9-]+\\.")) { |
| 3084 | /** search account **/ | 3084 | /** search account **/ |
| 3085 | xs *actor = NULL; | 3085 | xs *actor = NULL; |
| 3086 | xs *acct = NULL; | 3086 | xs *acct = NULL; |