emacs: Fix bug when parsing a subject cotaining: \[[0-9/]\]

That is, a subject with a bracketed set of digits (and optionally a
slash), for example "[2010]" would cause the emacs code to misparse
the search results. Fix this by tweaking the regular expression.
This commit is contained in:
Carl Worth 2010-09-23 13:21:03 -07:00
parent 8071c5cd64
commit 31a5e5a125

View file

@ -691,7 +691,7 @@ matching will be applied."
(more t) (more t)
(inhibit-read-only t)) (inhibit-read-only t))
(while more (while more
(if (string-match "^\\(thread:[0-9A-Fa-f]*\\) \\(.*\\) \\(\\[[0-9/]*\\]\\) \\([^;]*\\); \\(.*\\) (\\([^()]*\\))$" string line) (if (string-match "^\\(thread:[0-9A-Fa-f]*\\) \\([^][]*\\) \\(\\[[0-9/]*\\]\\) \\([^;]*\\); \\(.*\\) (\\([^()]*\\))$" string line)
(let* ((thread-id (match-string 1 string)) (let* ((thread-id (match-string 1 string))
(date (match-string 2 string)) (date (match-string 2 string))
(count (match-string 3 string)) (count (match-string 3 string))