Fix hostRegex to accept hosts with a -

This commit is contained in:
figsoda 2023-05-03 18:59:44 -04:00
parent b17c4290cf
commit 0662fd8599

View File

@ -21,7 +21,7 @@ struct DownloadUrl
};
// A github, gitlab, or sourcehut host
const static std::string hostRegexS = "[a-zA-Z0-9.]*"; // FIXME: check
const static std::string hostRegexS = "[a-zA-Z0-9.-]*"; // FIXME: check
std::regex hostRegex(hostRegexS, std::regex::ECMAScript);
struct GitArchiveInputScheme : InputScheme