summaryrefslogtreecommitdiff
path: root/parser/parser.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'parser/parser.fnl')
-rw-r--r--parser/parser.fnl3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser/parser.fnl b/parser/parser.fnl
index cb026bc..97cc6e7 100644
--- a/parser/parser.fnl
+++ b/parser/parser.fnl
@@ -1,6 +1,7 @@
(import-macros {: map} :lib.macro)
(local number (require :lib.number))
+(local {: must} (require :lib.utils))
(local peg
(if (pick-values 1 (pcall require :lpeg))
@@ -106,7 +107,7 @@
;; FIXME: make guessing case insensitive
(fn guess-tags [text]
- (local text (if text (luna.utf.lower text) ""))
+ (local text (if text (must (luna.utf.lower text)) ""))
(if (: (anywhere (peg.P "зеленый чай")) :match text)
["Зеленый чай"]