Fix date parsing

This commit is contained in:
2025-10-26 10:46:15 -07:00
parent 92ede0c5d9
commit bb461976f1

View File

@ -200,7 +200,10 @@ least one range given will match (that is, the union of all given dates).~%"))
when (and s e) when (and s e)
collect (subseq string s e) collect (subseq string s e)
else else
collect nil)))))))) collect nil)))))))
;; we call return-from above, so this will only run if all know patterns fail
;; to match
(error "Invalid date string: ~S" string))
(defun parse-date-range (string) (defun parse-date-range (string)
"Parse a date range from STRING." "Parse a date range from STRING."