diff options
| author | unwox <me@unwox.com> | 2024-10-15 14:49:46 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-10-15 14:59:04 +0600 |
| commit | 92d95b978bfb10fd29024d0adda7b28f125e08b8 (patch) | |
| tree | 189fd3c9cf9bc08712d795e8119c8df61fd7ce6b /parser/parser.fnl | |
| parent | 1204496efa2fcd495bd74ba8ca249b7f082f3ba5 (diff) | |
adapt to the new convention for calling luna module methods
Diffstat (limited to 'parser/parser.fnl')
| -rw-r--r-- | parser/parser.fnl | 3 |
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) ["Зеленый чай"] |
