Merge pull request #70 from lynn/feature/slash-or

Allow slashes in pronoun alternative syntax
This commit is contained in:
Morgan Astra 2018-11-15 19:19:32 -08:00 committed by GitHub
commit ef32711b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@
(defn pronouns [params]
(let [path (params :*)
alts (or (params "or") [])
pronouns (concat [path] (u/vec-coerce alts))
pronouns (concat (s/split path #"/or/") (u/vec-coerce alts))
pronoun-declensions (filter some? (map #(lookup-pronouns
(escape-html %))
pronouns))]