1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 00:39:45 +01:00

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