mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Fix hostRegex to accept hosts with a -
This commit is contained in:
parent
b17c4290cf
commit
0662fd8599
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue