In my head, all make-symbol/make-keyword things upcase their input. *sigh*

This commit is contained in:
Brit Butler 2012-08-21 17:17:43 -04:00
parent 2afde61ad4
commit 1c0a037bac

View file

@ -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))))))))