mirror of
https://github.com/NixOS/nix
synced 2025-07-03 02:01:48 +02:00
Merge pull request #8288 from figsoda/regex
Fix hostRegex to accept hosts with a `-`
This commit is contained in:
commit
879e45247c
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…
Add table
Add a link
Reference in a new issue