alot: fix address book completion regex

This commit is contained in:
Nick Hu 2019-04-10 13:39:25 +01:00 committed by Robert Helgesson
parent 67aee78fdf
commit 6cd5c8fca5
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -20,11 +20,11 @@ with lib;
type = "shellcommand";
command = "'${pkgs.notmuch}/bin/notmuch address --format=json --output=recipients date:6M..'";
regexp =
"'\[?{"
"'\\[?{"
+ ''"name": "(?P<name>.*)", ''
+ ''"address": "(?P<email>.+)", ''
+ ''"name-addr": ".*"''
+ "}[,\]]?'";
+ "}[,\\]]?'";
shellcommand_external_filtering = "False";
};
example = literalExample ''