mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
libutil/url-parts.hh: comment
This commit is contained in:
parent
c05d4fadd5
commit
8c4ea12f11
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +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.
|
||||||
|
/// This regex incomplete. See https://git-scm.com/docs/git-check-ref-format
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue