mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 17:21:17 -05:00
Don't filter by whitespace
This commit is contained in:
parent
33cc0fe925
commit
1258d954d0
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue