diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-16 16:24:51 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-16 16:24:51 +0200 |
commit | 3ddb6d1833a94e3d141116f3e579e66ebef04111 (patch) | |
tree | 71bb8e984deb8695915a8adf1a83fb4e530b1333 /src/libexpr/primops/flakeref.cc | |
parent | 260527a90ccc23461cdc4ad73970dd4e0b2e5239 (diff) |
Allow refs to start with a digit
E.g. we want to accept "19.03" as a ref.
Diffstat (limited to 'src/libexpr/primops/flakeref.cc')
-rw-r--r-- | src/libexpr/primops/flakeref.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/flakeref.cc b/src/libexpr/primops/flakeref.cc index 4127e63cc..973987469 100644 --- a/src/libexpr/primops/flakeref.cc +++ b/src/libexpr/primops/flakeref.cc @@ -5,7 +5,7 @@ namespace nix { // 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). const static std::string revRegexS = "[0-9a-fA-F]{40}"; |