From 6de34f2d06f51f49fea06ce8f4ca9845c15f9091 Mon Sep 17 00:00:00 2001 From: blankie Date: Sat, 30 Dec 2023 13:23:18 +1100 Subject: [PATCH] Fix "failed to find host in url: https://tom.schizo.solutions/" https://chaosfem.tw/@f@tom.schizo.solutions --- models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.cpp b/models.cpp index 8f0e0d6..0c66ea6 100644 --- a/models.cpp +++ b/models.cpp @@ -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;