diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-05-08 12:14:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 12:14:59 +0200 |
commit | 879e45247c0e94f7a07dcafdb42c23d988cd9962 (patch) | |
tree | f9c56ee10c11bed2995581f48b65c485f83edad5 /src | |
parent | 81778c8d55e07f78cdee5abe3933258cea2a1851 (diff) | |
parent | 0662fd859935b74efa62a4c56aff85cb749c17c5 (diff) |
Merge pull request #8288 from figsoda/regex
Fix hostRegex to accept hosts with a `-`
Diffstat (limited to 'src')
-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 |