mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 12:48:31 +00:00
Don't filter by whitespace
This commit is contained in:
parent
33cc0fe925
commit
1258d954d0
@ -67,11 +67,11 @@
|
||||
|
||||
(defn contains-term?
|
||||
[phrase term]
|
||||
(str/contains? (str/lower phrase) (str/lower term)))
|
||||
(str/contains? (str/lower phrase) (str/trim (str/lower term))))
|
||||
|
||||
(defn filter-projects-by
|
||||
[term projs]
|
||||
(if (= term "")
|
||||
(if (str/blank? term)
|
||||
projs
|
||||
(filter #(contains-term? (:name %) term) projs)))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user