emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] lisp/org-expiry.el: Account for org-time-stamp-formats


From: Ihor Radchenko
Subject: Re: [PATCH] lisp/org-expiry.el: Account for org-time-stamp-formats
Date: Sun, 11 Dec 2022 09:21:44 +0000

Tom Gillespie <tgbugs@gmail.com> writes:

> +                      (format-time-string
> +                       (string-replace "<" ""
> +                       (string-replace ">" "" (cdr 
> org-time-stamp-formats)))))

`string-replace' is very aggressive. You may want something like "\\`<"
and "\\'>", matching only beginning/end of the string.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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