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

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

[elpa] externals/org b68c1666c2 1/4: org-ts-regexp0: Fix matching timest


From: ELPA Syncer
Subject: [elpa] externals/org b68c1666c2 1/4: org-ts-regexp0: Fix matching timestamps with no day name
Date: Sat, 8 Oct 2022 00:58:02 -0400 (EDT)

branch: externals/org
commit b68c1666c2be28b6e0b9fc6b1c1c863dd0d8f27c
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-ts-regexp0: Fix matching timestamps with no day name
    
    * lisp/org.el (org-ts-regexp1): Update regexp to match strings like
    "2022-04-29 02:00" with no day name.
    
    Reported-by: Russell Adams <RLAdams@adamsinfoserv.com>
    Link: https://orgmode.org/list/87zgk8tc17.fsf@localhost
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 640493d224..f8f86918cb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -436,7 +436,7 @@ FULL is given."
 This one does not require the space after the date, so it can be used
 on a string that terminates immediately after the date.")
 
-(defconst org-ts-regexp1 
"\\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\) *\\([^]+0-9>\r\n 
-]*\\)\\( \\([0-9]\\{1,2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)"
+(defconst org-ts-regexp1 
"\\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\)\\(?: 
*\\([^]+0-9>\r\n -]+\\)\\)?\\( \\([0-9]\\{1,2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)"
   "Regular expression matching time strings for analysis.")
 
 (defconst org-ts-regexp2 (concat "<" org-ts-regexp1 "[^>\n]\\{0,16\\}>")



reply via email to

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