aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/url-parts.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-18 12:55:06 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-18 12:55:06 +0100
commit1bbc66f8650150898f8d8e3c8c86f3b27802e019 (patch)
treeb30f262f0d42a9f5f3abd8e33a8a5e3f841d0e85 /src/libutil/url-parts.hh
parentf0b9a3c9748b2cbd7b3be6814a78abc2bedf62e8 (diff)
parent59f2dd8e8da1f82aa9e29e30ba1df643434a9254 (diff)
Merge branch 'slashes-in-github-branches' of https://github.com/Ma27/nix
Diffstat (limited to 'src/libutil/url-parts.hh')
-rw-r--r--src/libutil/url-parts.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/url-parts.hh b/src/libutil/url-parts.hh
index 5d21b8d1a..862d9fa6e 100644
--- a/src/libutil/url-parts.hh
+++ b/src/libutil/url-parts.hh
@@ -23,7 +23,7 @@ const static std::string absPathRegex = "(?:(?:/" + segmentRegex + ")*/?)";
const static std::string pathRegex = "(?:" + segmentRegex + "(?:/" + segmentRegex + ")*/?)";
// A Git ref (i.e. branch or tag name).
-const static std::string refRegexS = "[a-zA-Z0-9][a-zA-Z0-9_.-]*"; // FIXME: check
+const static std::string refRegexS = "[a-zA-Z0-9][a-zA-Z0-9_.\\/-]*"; // FIXME: check
extern std::regex refRegex;
// Instead of defining what a good Git Ref is, we define what a bad Git Ref is