]> git.eshelyaron.com Git - emacs.git/commitdiff
Make icalendar parse multi-line items correctly
authorRajeev Narang <rajeev+jnk@sivalik.com>
Wed, 11 Aug 2021 12:57:43 +0000 (14:57 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 11 Aug 2021 12:57:43 +0000 (14:57 +0200)
* lisp/calendar/icalendar.el (icalendar--parse-summary-and-rest):
Parse multi-line items correctly (bug#37887).

lisp/calendar/icalendar.el

index 3c1bac28f64a9b03cba6346e939d5beb2d295ad5..eaee2e9d951dd31100ccd481eeea11fadeeac92a 100644 (file)
@@ -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