Fix regex again

FossilOrigin-Name: cec57ee6e6282edfdbd43e4acb5e22175e100c9889880069b98bdfce39c1eec6
This commit is contained in:
me@ow.nekobit.net 2022-02-27 06:23:59 +00:00
parent 61fab8352e
commit 6a651e4b74

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:\\/\\/(.*?)\\/.*?\".*?).*?(?:href=\"https:\\/\\/(.*?)\\/.*?\".*?|class=\"u-url mention\")>@<span>(.*?)<\\/span>"
#define REGEX_REPLY "<a .*?href=\"https:\\/\\/(.*?)\\/.*?\".*?>@<span>(.*?)<\\/span>"
#define REGEX_RESULTS_LEN 9
char* reply_status(char* id, struct mstdnt_status* status)