mirror of
https://github.com/NixOS/nix
synced 2025-07-03 14:31:46 +02:00
fix: valid branch name
This commit is contained in:
parent
7f5ed330e4
commit
c05d4fadd5
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ const static std::string pathRegex = "(?:" + segmentRegex + "(?:/" + segmentRege
|
||||||
|
|
||||||
/// A Git ref (i.e. branch or tag name).
|
/// A Git ref (i.e. branch or tag name).
|
||||||
/// \todo check that this is correct.
|
/// \todo check that this is correct.
|
||||||
const static std::string refRegexS = "[a-zA-Z0-9@][a-zA-Z0-9_.\\/@-]*";
|
const static std::string refRegexS = "[a-zA-Z0-9@][a-zA-Z0-9_.\\/@-+]*";
|
||||||
extern std::regex refRegex;
|
extern std::regex refRegex;
|
||||||
|
|
||||||
/// Instead of defining what a good Git Ref is, we define what a bad Git Ref is
|
/// Instead of defining what a good Git Ref is, we define what a bad Git Ref is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue