diff options
author | Tom Willemsen | 2012-07-08 16:02:14 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-07-08 16:02:14 +0200 |
commit | d7d34799d4f347d45445fba75ad91b503b728bc9 (patch) | |
tree | 9223b23ad8a140bfd9fb65b14a8bf8ad0217ccce | |
parent | e1a25a2078dc62ef28c1420fc938022a5acd3b35 (diff) | |
download | dispass.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.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |