[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allow unspecified dates in iso8601-valid-p?
From: |
Stefan Monnier |
Subject: |
Re: Allow unspecified dates in iso8601-valid-p? |
Date: |
Mon, 04 Jul 2022 12:56:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> The question then becomes if it's useful to write such a function, or would it
> make more sense to account for unspecified dates in the relevant part of
> bibtex.el.
Not sure where it should live, but it could start with a hack like
(defun iso8601-compilant-p (date)
(iso8601-valid-p (replace-regexp-in-string "[xX]" "1" date)))
-- Stefan