aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-07-08 16:02:14 +0200
committerGravatar Tom Willemsen2012-07-08 16:02:14 +0200
commitd7d34799d4f347d45445fba75ad91b503b728bc9 (patch)
tree9223b23ad8a140bfd9fb65b14a8bf8ad0217ccce
parente1a25a2078dc62ef28c1420fc938022a5acd3b35 (diff)
downloaddispass.el-d7d34799d4f347d45445fba75ad91b503b728bc9.tar.gz
dispass.el-d7d34799d4f347d45445fba75ad91b503b728bc9.zip
Improve label repexp
* dispass.el (dispass-labels--refresh): Change the regular expression used to allow `-' and `_' in the label names.
-rw-r--r--dispass.el2
1 files changed, 1 insertions, 1 deletions
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)