Merge pull request #70 from lynn/feature/slash-or
Allow slashes in pronoun alternative syntax
This commit is contained in:
commit
ef32711b17
@ -202,7 +202,7 @@
|
|||||||
(defn pronouns [params]
|
(defn pronouns [params]
|
||||||
(let [path (params :*)
|
(let [path (params :*)
|
||||||
alts (or (params "or") [])
|
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
|
pronoun-declensions (filter some? (map #(lookup-pronouns
|
||||||
(escape-html %))
|
(escape-html %))
|
||||||
pronouns))]
|
pronouns))]
|
||||||
|
Loading…
Reference in New Issue
Block a user