emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult ddc67f1 3/5: consult--convert-regexp: Use \z in


From: ELPA Syncer
Subject: [elpa] externals/consult ddc67f1 3/5: consult--convert-regexp: Use \z instead of \Z
Date: Thu, 5 Aug 2021 15:57:09 -0400 (EDT)

branch: externals/consult
commit ddc67f1380c3d1f74842dc866eb7e27ec44259e2
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    consult--convert-regexp: Use \z instead of \Z
---
 consult.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/consult.el b/consult.el
index 5744308..40838bc 100644
--- a/consult.el
+++ b/consult.el
@@ -563,7 +563,8 @@ This function only changes the escaping of parentheses, 
braces and pipes."
                     ("\\(" . "(") ("\\)" . ")")
                     ("\\{" . "{") ("\\}" . "}")))
           (subst (if (eq type 'pcre)
-                     '(("\\`" . "\\A") ("\\'" . "\\Z")
+                     ;; \z matches at the end, \Z matches at the end and 
before the last \n
+                     '(("\\`" . "\\A") ("\\'" . "\\z")
                        ("\\<" . "\\b") ("\\>" . "\\b")
                        ("\\_<" . "\\b") ("\\_>" . "\\b"))
                    '(("\\_<" . "\\<") ("\\_>" . "\\>")))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]