diff --git a/lua/date_translator.lua b/lua/date_translator.lua index f716db8..d1c8915 100644 --- a/lua/date_translator.lua +++ b/lua/date_translator.lua @@ -27,7 +27,7 @@ function M.func(input, seg, env) yield_cand(seg, os.date('%Y/%m/%d', current_time)) yield_cand(seg, os.date('%Y.%m.%d', current_time)) yield_cand(seg, os.date('%Y%m%d', current_time)) - yield_cand(seg, os.date('%Y 年 %m 月 %d 日', current_time):gsub(' 0', ' ')) + yield_cand(seg, os.date('%Y年%m月%d日', current_time):gsub('年0', '年'):gsub('月0','月')) -- 时间 elseif (input == M.time) then