Slugify tags. Fixes issue #25.

This commit is contained in:
Brit Butler 2013-04-18 15:18:14 -04:00
parent ad2a05fa3a
commit f6e78dd47c

View file

@ -31,7 +31,8 @@
(field-name (line)
(make-keyword (string-upcase (subseq line 0 (position #\: line)))))
(read-delimited (str &optional (delimiter ", "))
(mapcar #'string-downcase (cl-ppcre:split delimiter str))))
(mapcar (compose #'slugify #'string-downcase)
(cl-ppcre:split delimiter str))))
(with-open-file (in file)
(unless (string= (read-line in) ";;;;;")
(error "The provided file lacks the expected header."))