From e022a0cea11a0e784ba20ac478a033da7fb1bb7f Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Tue, 25 Oct 2022 18:36:25 +0800 Subject: [PATCH] org-make-tags-matcher: Do not treat PROPERTY="[X]" as timestamp match * lisp/org.el (org-make-tags-matcher): Improve heuristics used to detect timestamps in the matcher. Reported-by: Daniel J. Sinder Link: https://orgmode.org/list/CAHND-wwBsoAQs2a5XTGKyX-=fFL5AwCPup=uA+R=FRH=1rUeVg@mail.gmail.com --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index e93a81210..01e0279c8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11337,7 +11337,7 @@ See also `org-scan-tags'." (pv (match-string 7 term)) (regexp (eq (string-to-char pv) ?{)) (strp (eq (string-to-char pv) ?\")) - (timep (string-match-p "^\"[[<].*[]>]\"$" pv)) + (timep (string-match-p "^\"[[<][0-9]+.*[]>]\"$" pv)) (po (org-op-to-function (match-string 6 term) (if timep 'time strp)))) (setq pv (if (or regexp strp) (substring pv 1 -1) pv))