Archived
1
0
Fork 0
Commit graph

3 commits

Author SHA1 Message Date
27d9f4976e
style: fix typo in filter_include.go
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-05-20 17:11:12 +02:00
48a763a90c
style: add comments on filters
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-05-20 17:07:56 +02:00
244c9f68e7
refactor: move filters out of parser
Filters are now separate structures to include a product or not based
on their own set of properties. For now, include and exclude filters
are supported. They take a regex as an argument and include a product
if the regex matches (or doesn't match) the product name. This commit
will allow us to create new filters on product like on a price range.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-05-19 17:43:31 +02:00