In my head, all make-symbol/make-keyword things upcase their input. *sigh*
This commit is contained in:
parent
2afde61ad4
commit
1c0a037bac
1 changed files with 2 additions and 2 deletions
|
@ -42,11 +42,11 @@
|
|||
(check-header)
|
||||
(let ((args (loop for field in '("title" "tags" "date" "format")
|
||||
for line = (read-line in nil)
|
||||
appending (list (make-keyword field)
|
||||
appending (list (make-keyword (string-upcase field))
|
||||
(aref (parse-field line) 0)))))
|
||||
(check-header)
|
||||
(setf (getf args :tags) (cl-ppcre:split ", " (getf args :tags))
|
||||
(getf args :format) (make-keyword (getf args :format)))
|
||||
(getf args :format) (make-keyword (string-upcase (getf args :format))))
|
||||
(apply 'make-instance 'post
|
||||
(append args (list :content (read-line in nil)
|
||||
:slug (slugify (getf args :title))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue