mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
7 lines
206 B
CoffeeScript
7 lines
206 B
CoffeeScript
Darkswarm.factory "Matcher", ->
|
|
new class Matcher
|
|
match: (properties, text)->
|
|
properties.some (prop)->
|
|
prop ||= ""
|
|
prop.toLowerCase().indexOf(text.toLowerCase()) != -1
|