mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
nix develop: Fix bad regex
This was accepted by libstdc++ but not libc++. https://hydra.nixos.org/build/123569154
This commit is contained in:
parent
6f8fd3a3f2
commit
c3c7aedbb5
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ BuildEnvironment readEnvironment(const Path & path)
|
|||
R"re((?:\$?'(?:[^'\\]|\\[abeEfnrtv\\'"?])*'))re";
|
||||
|
||||
static std::string indexedArrayRegex =
|
||||
R"re((?:\(( *\[[0-9]+]="(?:[^"\\]|\\.)*")**\)))re";
|
||||
R"re((?:\(( *\[[0-9]+\]="(?:[^"\\]|\\.)*")*\)))re";
|
||||
|
||||
static std::regex varRegex(
|
||||
"^(" + varNameRegex + ")=(" + simpleStringRegex + "|" + quotedStringRegex + "|" + indexedArrayRegex + ")\n");
|
||||
|
|
Loading…
Reference in a new issue