Improve label repexp
* dispass.el (dispass-labels--refresh): Change the regular expression used to allow `-' and `_' in the label names.
This commit is contained in:
parent
e1a25a2078
commit
d7d34799d4
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ an eye out for LABEL."
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents dispass-file)
|
(insert-file-contents dispass-file)
|
||||||
(while (re-search-forward
|
(while (re-search-forward
|
||||||
"\\(\\w+\\) .*length=\\([0-9]+\\) .*hash=\\(\\w+\\)$"
|
"\\(\\(?:\\sw\\|\\s_\\)+\\) .*length=\\([0-9]+\\) .*hash=\\(\\sw+\\)$"
|
||||||
nil t)
|
nil t)
|
||||||
(add-to-list 'tmp-list `(,(match-string 1)
|
(add-to-list 'tmp-list `(,(match-string 1)
|
||||||
[(,(match-string 1)
|
[(,(match-string 1)
|
||||||
|
|
Loading…
Reference in a new issue