FossilOrigin-Name: 6d10ec3b2d7cec006b723a89bcfc059593a0a43e5418c19243ceefd80ada1c3b
This commit is contained in:
me@ow.nekobit.net 2022-02-27 06:15:04 +00:00
parent f81c1fba96
commit 61fab8352e

View file

@ -45,7 +45,7 @@ char* construct_post_box(char* reply_id,
return reply_html;
}
#define REGEX_REPLY "<a class=\"u-url mention\".*?href=\"https:\\/\\/(.*?)\\/.*?\".*?>@<span>(.*?)<\\/span>"
#define REGEX_REPLY "<a (?:class=\"u-url mention\"|href=\"https:\\/\\/(.*?)\\/.*?\".*?).*?(?:href=\"https:\\/\\/(.*?)\\/.*?\".*?|class=\"u-url mention\")>@<span>(.*?)<\\/span>"
#define REGEX_RESULTS_LEN 9
char* reply_status(char* id, struct mstdnt_status* status)