mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
6 lines
184 B
CoffeeScript
6 lines
184 B
CoffeeScript
Darkswarm.factory "Matcher", ->
|
|
new class Matcher
|
|
match: (properties, text)->
|
|
properties.some (prop)->
|
|
prop.toLowerCase().indexOf(text.toLowerCase()) != -1
|