summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2020-09-24 15:04:30 +0800
committerPeng Wu <alexepico@gmail.com>2020-09-24 15:04:30 +0800
commit0492fc31565ebd35f6ac14769203bdce752f8d7a (patch)
tree40ddb3e2145c51b98f4ade0e23bc3ed63d59e962
parenteea3b45a2400d09092b1d5f15c07225249249e7d (diff)
downloadibus-libpinyin-0492fc31565ebd35f6ac14769203bdce752f8d7a.tar.gz
Update base.lua
-rw-r--r--lua/base.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/base.lua b/lua/base.lua
index 76d8e52..0105c50 100644
--- a/lua/base.lua
+++ b/lua/base.lua
@@ -161,7 +161,7 @@ end
function compute(input)
local expr = "return " .. _add_math_keyword(input)
- local func = loadstring(expr)
+ local func = load(expr)
if func == nil then
return "-- 未完整表达式 --"
end