Skip to content

Commit

Permalink
更新代码编写
Browse files Browse the repository at this point in the history
  • Loading branch information
expoli committed Feb 6, 2023
1 parent 5790fa4 commit 49f98e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions lua/number.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,12 @@ local function split(input, delimiter)
end

function Daxie_Translator(input, seg, env)
if not (input:match("^/dx")) then return end
local segment = env.engine.context.composition:back()
if not input:match("^/dx") then return end
segment.prompt = "/dx\\d\\+(.\\d\\d)?大写金额"
if string.match(input, '^/dx%d+') then
if input:match("^/dx$") then
segment.prompt = "/dx\\d+(.\\d\\d)?\t大写金额"
end
if input:match('^/dx%d+') then
local num = split(string.sub(input, 4), '.')[1]
local digit = split(string.sub(input, 4), '.')[2]

Expand Down
6 changes: 3 additions & 3 deletions user.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var:
last_build_time: 1670200539
last_build_time: 1675665213
option:
ascii_punct: false
simplification: true
previously_selected_schema: double_pinyin_flypy
schema_access_time:
double_pinyin: 1667566295
double_pinyin_flypy: 1669280371
luna_pinyin: 1669280365
double_pinyin_flypy: 1675663010
luna_pinyin: 1675662820
luna_pinyin_simp: 1669109837
numbers: 1669109908

0 comments on commit 49f98e8

Please sign in to comment.