Sfoglia il codice sorgente

Fix the regexp for finding contacts in khard output

* khardel.el (khardel--list-contacts): Allow dashes in UUIDs.
tags/v0.2.0
Nicolas Petton 1 anno fa
parent
commit
af24b30bd2
Non sono state trovate chiavi note per questa firma nel database
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      khardel.el

+ 1
- 1
khardel.el Vedi 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…
Annulla
Salva