summaryrefslogtreecommitdiff
path: root/parser/parser.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-10-10 15:03:06 +0600
committerunwox <me@unwox.com>2024-10-10 15:03:06 +0600
commit240aeb84855a153764830186d5f4e7f22873561c (patch)
tree0cda41c18d327edb9691249ac8d6e5a44fa9c91e /parser/parser.fnl
parent9d1b193640c039f7300b44dd30def266cbc31a85 (diff)
implement filtering by tags
Diffstat (limited to 'parser/parser.fnl')
-rw-r--r--parser/parser.fnl8
1 files changed, 4 insertions, 4 deletions
diff --git a/parser/parser.fnl b/parser/parser.fnl
index ca74847..cb026bc 100644
--- a/parser/parser.fnl
+++ b/parser/parser.fnl
@@ -108,15 +108,15 @@
(fn guess-tags [text]
(local text (if text (luna.utf.lower text) ""))
- (if (: (anywhere (peg.P "зеленый")) :match text)
+ (if (: (anywhere (peg.P "зеленый чай")) :match text)
["Зеленый чай"]
(: (anywhere (peg.P "улун")) :match text)
["Улун"]
- (: (anywhere (peg.P "белый")) :match text)
+ (: (anywhere (peg.P "белый чай")) :match text)
["Белый чай"]
- (: (anywhere (peg.P "желтый")) :match text)
+ (: (anywhere (peg.P "желтый чай")) :match text)
["Желтый чай"]
- (: (anywhere (peg.P "красный")) :match text)
+ (: (anywhere (peg.P "красный чай")) :match text)
["Красный чай"]
(: (anywhere (peg.P "хэй ча")) :match text)
["Хэй ча"]