diff options
author | lassulus <lass@aidsballs.de> | 2016-08-11 21:06:16 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-08-11 21:06:16 +0200 |
commit | 037cefc30ab756e6aea19ba096fe18e6e38ffffe (patch) | |
tree | d1a758d3259d7edd46e9aa8e257a499db45a0606 /krebs | |
parent | c7c812575edce32f4e8ca55c422b59643f52280e (diff) | |
parent | 524601b9742ae85401805b4db61dd91c9bdf1b44 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/5pkgs/logf/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/5pkgs/logf/default.nix b/krebs/5pkgs/logf/default.nix index d9eae0a4a..ac95acb33 100644 --- a/krebs/5pkgs/logf/default.nix +++ b/krebs/5pkgs/logf/default.nix @@ -54,7 +54,8 @@ pkgs.writeDashBin "logf" '' # anaphoric gsub def agsub(re; f): - gsub("(?<it>\(re))"; .it | f); + # Don't try empty regex: https://github.com/stedolan/jq/issues/1206 + when(re != ""; gsub("(?<it>\(re))"; .it | f)); # :: [int] -> sgr def sgr: "\u001b[\(map(tostring) | join(";"))m"; |