[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 2532d5c2e6: Fix fuzzy matching regexp
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/helm 2532d5c2e6: Fix fuzzy matching regexp |
|
Date: |
Tue, 9 Jan 2024 03:59:56 -0500 (EST) |
branch: elpa/helm
commit 2532d5c2e6abd2c0df2fd22bd0f405a4b6fe7b42
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Fix fuzzy matching regexp
"?" is redundant here.
---
helm-lib.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/helm-lib.el b/helm-lib.el
index 8c741013a3..72c123dd0f 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -588,9 +588,9 @@ NOTE: Duplicate keys in CLAUSES are deliberately not
handled.
(defsubst helm--mapconcat-pattern (pattern)
"Transform string PATTERN in regexp for further fuzzy matching.
E.g.: helm.el$
- => \"[^h]*?h[^e]*?e[^l]*?l[^m]*?m[^.]*?[.][^e]*?e[^l]*?l$\"
+ => \"[^h]*h[^e]*e[^l]*l[^m]*m[^.]*\\\\.[^e]*e[^l]*l$\"
^helm.el$
- => \"helm[.]el$\"."
+ => \"helm\\\\.el$\"."
(let ((ls (split-string-and-unquote pattern "")))
(if (string= "^" (car ls))
;; Exact match.
@@ -603,7 +603,7 @@ E.g.: helm.el$
(mapconcat (lambda (c)
(if (and (string= c "$")
(string-match "$\\'" pattern))
- c (format "[^%s]*?%s" c (regexp-quote c))))
+ c (format "[^%s]*%s" c (regexp-quote c))))
ls ""))))
(defsubst helm--collect-pairs-in-string (string)
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/helm 2532d5c2e6: Fix fuzzy matching regexp,
ELPA Syncer <=