mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
libutil/url-parts.hh: Fix regex
Regex syntax is awful.
This commit is contained in:
parent
8c4ea12f11
commit
4f47152209
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,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
|
/// 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;
|
||||||
|
|
||||||
/// 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…
Reference in a new issue