summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/logf
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-08-11 21:06:16 +0200
committerlassulus <lass@aidsballs.de>2016-08-11 21:06:16 +0200
commit037cefc30ab756e6aea19ba096fe18e6e38ffffe (patch)
treed1a758d3259d7edd46e9aa8e257a499db45a0606 /krebs/5pkgs/logf
parentc7c812575edce32f4e8ca55c422b59643f52280e (diff)
parent524601b9742ae85401805b4db61dd91c9bdf1b44 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/5pkgs/logf')
-rw-r--r--krebs/5pkgs/logf/default.nix3
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";