chore: lua 加上缺失的 local
This commit is contained in:
parent
e5d122935f
commit
26d07f6239
@ -7,7 +7,7 @@ local function add_space_to_english_word(input)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- 在候选项上屏时触发的函数
|
-- 在候选项上屏时触发的函数
|
||||||
function en_spacer(input, env)
|
local function en_spacer(input, env)
|
||||||
for cand in input:iter() do
|
for cand in input:iter() do
|
||||||
if cand.text:match("^[%a']+[%a']*$") then
|
if cand.text:match("^[%a']+[%a']*$") then
|
||||||
-- 如果候选项是纯英文单词,则在输入后添加一个空格
|
-- 如果候选项是纯英文单词,则在输入后添加一个空格
|
||||||
|
@ -58,7 +58,7 @@ local function formatNum(num,t)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- 数值转换为中文
|
-- 数值转换为中文
|
||||||
function number2cnChar(num,flag,digitUnit,wordFigure) --flag=0中文小写反之为大写
|
local function number2cnChar(num,flag,digitUnit,wordFigure) --flag=0中文小写反之为大写
|
||||||
local st,result
|
local st,result
|
||||||
num=tostring(num) result=""
|
num=tostring(num) result=""
|
||||||
local num1,num2=math.modf(num)
|
local num1,num2=math.modf(num)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user