Browse Source

Fix the regexp for finding contacts in khard output

* khardel.el (khardel--list-contacts): Allow dashes in UUIDs.
tags/v0.2.0
Nicolas Petton 11 months ago
parent
commit
af24b30bd2
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      khardel.el

+ 1
- 1
khardel.el View File

@@ -53,7 +53,7 @@
(goto-char (point-min))
(let ((contacts (make-hash-table :test 'equal)))
(cl-loop
while (re-search-forward "^\\([a-z0-9]*\\)\t\\(.*\\)\t[^\t]*$" nil t)
while (re-search-forward "^\\([-a-z0-9]*\\)\t\\(.*\\)\t[^\t]*$" nil t)
do (map-put contacts (match-string 2) (cons (match-string 1) (match-string 2)))
finally return contacts)))))


Loading…
Cancel
Save