emacs-diffs
[Top][All Lists]
Advanced

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

master 1ab9fa6 3/3: Make icalendar parse multi-line items correctly


From: Lars Ingebrigtsen
Subject: master 1ab9fa6 3/3: Make icalendar parse multi-line items correctly
Date: Wed, 11 Aug 2021 08:58:32 -0400 (EDT)

branch: master
commit 1ab9fa60e75a15e09ca28966dd1e4cb364ca3809
Author: Rajeev Narang <rajeev+jnk@sivalik.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make icalendar parse multi-line items correctly
    
    * lisp/calendar/icalendar.el (icalendar--parse-summary-and-rest):
    Parse multi-line items correctly (bug#37887).
---
 lisp/calendar/icalendar.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index 3c1bac2..eaee2e9 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -1273,7 +1273,7 @@ Returns an alist."
                      (concat "\\(" icalendar-import-format-uid "\\)??"))))
        ;; Need the \' regexp in order to detect multi-line items
         (setq s (concat "\\`"
-                        (replace-regexp-in-string "%s" "\\(.*?\\)" s nil t)
+                        (replace-regexp-in-string "%s" "\\([^z-a]*?\\)" s nil 
t)
                         "\\'"))
         (if (string-match s summary-and-rest)
             (let (cla des loc org sta url uid) ;; sum



reply via email to

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