Slight tweak to READ-CONTENT's metadata parsing.

This commit is contained in:
Brit Butler 2014-05-03 13:43:37 -04:00
parent 16d7656421
commit 16272cc6a6

View file

@ -49,7 +49,7 @@
(read-sequence seq stream)
(remove #\Nul seq)))
(parse-field (str)
(nth-value 1 (cl-ppcre:scan-to-strings "[a-zA-Z]+: (.*)" str)))
(nth-value 1 (cl-ppcre:scan-to-strings "[a-zA-Z]+:\\s+(.*)" str)))
(field-name (line)
(make-keyword (string-upcase (subseq line 0 (position #\: line))))))
(with-open-file (in file :external-format '(:utf-8))