Allow pronoun.is/she/or/xe syntax

This commit is contained in:
Lynn 2017-06-03 13:35:17 +02:00
parent 46b299da8c
commit 7d0d3a445b

View File

@ -191,7 +191,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))]