aboutsummaryrefslogtreecommitdiff
path: root/src/nix/develop.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-03 14:58:58 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-03 14:58:58 +0200
commitc3c7aedbb5ac869b7c454e90683f77b9c527a75a (patch)
tree95317a2343abb093043a5c65c486de71863d14ef /src/nix/develop.cc
parent6f8fd3a3f22de24223bba05635aaa62107d92767 (diff)
nix develop: Fix bad regex
This was accepted by libstdc++ but not libc++. https://hydra.nixos.org/build/123569154
Diffstat (limited to 'src/nix/develop.cc')
-rw-r--r--src/nix/develop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index 289e3bed3..eb93f56fc 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -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");