From 6cd5c8fca5ed00099060317a9fa99c1ceed72a83 Mon Sep 17 00:00:00 2001 From: Nick Hu Date: Wed, 10 Apr 2019 13:39:25 +0100 Subject: [PATCH] alot: fix address book completion regex --- modules/programs/alot-accounts.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/alot-accounts.nix b/modules/programs/alot-accounts.nix index 2def5fd1a..8f3ffdfb3 100644 --- a/modules/programs/alot-accounts.nix +++ b/modules/programs/alot-accounts.nix @@ -20,11 +20,11 @@ with lib; type = "shellcommand"; command = "'${pkgs.notmuch}/bin/notmuch address --format=json --output=recipients date:6M..'"; regexp = - "'\[?{" + "'\\[?{" + ''"name": "(?P.*)", '' + ''"address": "(?P.+)", '' + ''"name-addr": ".*"'' - + "}[,\]]?'"; + + "}[,\\]]?'"; shellcommand_external_filtering = "False"; }; example = literalExample ''