forked from lix-project/lix
Allow refs to start with a digit
E.g. we want to accept "19.03" as a ref.
This commit is contained in:
parent
260527a90c
commit
3ddb6d1833
|
@ -5,7 +5,7 @@
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
// A Git ref (i.e. branch or tag name).
|
// A Git ref (i.e. branch or tag name).
|
||||||
const static std::string refRegex = "[a-zA-Z][a-zA-Z0-9_.-]*"; // FIXME: check
|
const static std::string refRegex = "[a-zA-Z0-9][a-zA-Z0-9_.-]*"; // FIXME: check
|
||||||
|
|
||||||
// A Git revision (a SHA-1 commit hash).
|
// A Git revision (a SHA-1 commit hash).
|
||||||
const static std::string revRegexS = "[0-9a-fA-F]{40}";
|
const static std::string revRegexS = "[0-9a-fA-F]{40}";
|
||||||
|
|
Loading…
Reference in a new issue