From d7d34799d4f347d45445fba75ad91b503b728bc9 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 8 Jul 2012 16:02:14 +0200 Subject: Improve label repexp * dispass.el (dispass-labels--refresh): Change the regular expression used to allow `-' and `_' in the label names. --- dispass.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispass.el b/dispass.el index 3a68482..66588f2 100644 --- a/dispass.el +++ b/dispass.el @@ -216,7 +216,7 @@ an eye out for LABEL." (with-temp-buffer (insert-file-contents dispass-file) (while (re-search-forward - "\\(\\w+\\) .*length=\\([0-9]+\\) .*hash=\\(\\w+\\)$" + "\\(\\(?:\\sw\\|\\s_\\)+\\) .*length=\\([0-9]+\\) .*hash=\\(\\sw+\\)$" nil t) (add-to-list 'tmp-list `(,(match-string 1) [(,(match-string 1) -- cgit v1.2.3-54-g00ecf