Merge pull request #8288 from figsoda/regex

Fix hostRegex to accept hosts with a `-`
This commit is contained in:
Robert Hensing 2023-05-08 12:14:59 +02:00 committed by GitHub
commit 879e45247c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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