Преглед на файлове

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 година
родител
ревизия
af24b30bd2
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      khardel.el

+ 1
- 1
khardel.el Целия файл

@@ -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…
Отказ
Запис