bug-recutils
[Top][All Lists]
Advanced

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

[COMMITTED] Escape plus sign in regexp


From: Antoine Kalmbach
Subject: [COMMITTED] Escape plus sign in regexp
Date: Thu, 12 Nov 2020 16:44:38 +0200

* rec-mode.el (rec-beginning-of-field-pos): escape the plus sign
(kudos to relint, http://elpa.gnu.org/packages/relint.html)
---
 rec-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rec-mode.el b/rec-mode.el
index 7e512f7..0decb99 100644
--- a/rec-mode.el
+++ b/rec-mode.el
@@ -521,7 +521,7 @@ If no such field exists in RECORD then nil is returned."
       (while
           (cond
            ((and (not (= (line-beginning-position) 1))
-                 (or (looking-at "+")
+                 (or (looking-at "\\+")
                      (looking-back "\\\\\n" 2)))
             (forward-line -1)
             t) ;;Continue
-- 
2.24.3 (Apple Git-128)




reply via email to

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