mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Tweaking filter to be case insensitive
This commit is contained in:
@@ -3,7 +3,7 @@ Darkswarm.filter 'filterHubs', ->
|
||||
hubs ||= []
|
||||
text ?= ""
|
||||
match = (matched)->
|
||||
matched.indexOf(text) != -1
|
||||
matched.toLowerCase().indexOf(text.toLowerCase()) != -1
|
||||
|
||||
hubs.filter (hub)->
|
||||
match(hub.name) or match(hub.address.zipcode) or match(hub.address.city)
|
||||
|
||||
Reference in New Issue
Block a user