diff options
author | figsoda <figsoda@pm.me> | 2023-05-03 18:59:44 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-05-03 18:59:44 -0400 |
commit | 0662fd859935b74efa62a4c56aff85cb749c17c5 (patch) | |
tree | 2b56f92555e585bb7f3bd88ea6a5aa26158829ae /src/libfetchers | |
parent | b17c4290cf61d8a0386817b87231762c175097c5 (diff) |
Fix hostRegex to accept hosts with a `-`
Diffstat (limited to 'src/libfetchers')
-rw-r--r-- | src/libfetchers/github.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index 1ed09d30d..6c1d573ce 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -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 |