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;