summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-07-31 02:06:07 +0100
committerjao <jao@gnu.org>2022-07-31 02:06:07 +0100
commit6ea952cd4cbbfb9276325adbf05d6e050d225d51 (patch)
treea283e3df8fe41d5d72fe7a5bc5df59fb1e82c91f
parent204a936c5b29334a3b40042ff5047f5790a7c136 (diff)
back to the previous regexp, it's more precise in the common case
-rw-r--r--consult-recoll.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/consult-recoll.el b/consult-recoll.el
index 93b3ead..9acbd1e 100644
--- a/consult-recoll.el
+++ b/consult-recoll.el
@@ -86,7 +86,7 @@ Set to nil to use the default 'title (path)' format."
(setq consult-recoll--current text)
`("recollq" ,@consult-recoll-search-flags ,text))
-(defconst consult-recoll--line-rx "^\\(.*?\\)\t\\[\\(.*?\\)\\]\t\\[\\(.*\\)\\]"
+(defconst consult-recoll--line-rx "^\\([^[]+\\)\t\\[\\([^]]+\\)\\]\t\\[\\([^[]+\\)\\]"
"Regular expression decomposing result lines returned by recollq")
(defun consult-recoll--transformer (str)