From 92d95b978bfb10fd29024d0adda7b28f125e08b8 Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 15 Oct 2024 14:49:46 +0600 Subject: adapt to the new convention for calling luna module methods --- parser/parser.fnl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'parser/parser.fnl') 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) ["Зеленый чай"] -- cgit v1.2.3