mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Move flakeIdRegex{,S}
from libutil
to flakeref.{cc,hh
It isn't used, and doesn't belong in `libutil`.
This commit is contained in:
parent
cede94dbf7
commit
b912f3a937
4 changed files with 5 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "fetchers.hh"
|
||||
#include "outputs-spec.hh"
|
||||
|
||||
#include <regex>
|
||||
#include <variant>
|
||||
|
||||
namespace nix {
|
||||
|
@ -91,5 +92,7 @@ std::tuple<FlakeRef, std::string, ExtendedOutputsSpec> parseFlakeRefWithFragment
|
|||
bool allowMissing = false,
|
||||
bool isFlake = true);
|
||||
|
||||
const static std::string flakeIdRegexS = "[a-zA-Z][a-zA-Z0-9_-]*";
|
||||
extern std::regex flakeIdRegex;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue