Fix "failed to find host in url: https://tom.schizo.solutions/"

https://chaosfem.tw/@f@tom.schizo.solutions
This commit is contained in:
blankie 2023-12-30 13:23:18 +11:00
parent 05b6566808
commit 6de34f2d06
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ void from_json(const json& j, AccountField& field) {
}
}
static std::regex host_regex("https?://(" DOMAIN_RE ")/.+", std::regex::ECMAScript | std::regex::icase);
static std::regex host_regex("https?://(" DOMAIN_RE ")/.*", std::regex::ECMAScript | std::regex::icase);
void from_json(const json& j, Account& account) {
using namespace std::string_literals;