Skip to content

Commit

Permalink
Fix bug in entry list
Browse files Browse the repository at this point in the history
  • Loading branch information
kofuk committed Aug 28, 2019
1 parent f0b4e4b commit 4b47e4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entry.el
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@

(defun get-entry-date (entry)
"Return created date of entry according to entry id."
(if (string-match-p "^[0-9]{8}" entry)
(if (string-match-p "^[0-9][0-9][0-9][0-9][01][0-9][0-3][0-9]" entry)
(with-temp-buffer
(insert entry)
(goto-char (point-min))
(forward-char 4)
(insert "/")
(forward-char 2)
Expand Down

0 comments on commit 4b47e4b

Please sign in to comment.