Slugify tags. Fixes issue #25.
This commit is contained in:
parent
ad2a05fa3a
commit
f6e78dd47c
1 changed files with 2 additions and 1 deletions
|
@ -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."))
|
||||
|
|
Loading…
Add table
Reference in a new issue