[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"))
'(("\\_<" . "\\<") ("\\_>" . "\\>")))))
- [elpa] externals/consult updated (f31ac4d -> bf598c8), ELPA Syncer, 2021/08/05
- [elpa] externals/consult 1d50745 1/5: Update comment, ELPA Syncer, 2021/08/05
- [elpa] externals/consult 05089f0 2/5: Add lookahead wrapper only if there is more than one regular expression, ELPA Syncer, 2021/08/05
- [elpa] externals/consult 95dadd9 4/5: Ripgrep regular expressions are perl-style, but without lookahead, ELPA Syncer, 2021/08/05
- [elpa] externals/consult ddc67f1 3/5: consult--convert-regexp: Use \z instead of \Z,
ELPA Syncer <=
- [elpa] externals/consult bf598c8 5/5: Always treat \` and \' as ^ and $ respectively, ELPA Syncer, 2021/08/05