Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
修复cuttime模式的十进制输入为小数时会出错的bug
  • Loading branch information
op200 authored Sep 8, 2024
1 parent b39d869 commit a8f4248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag-replace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ local function do_replace(sub, temp, bere, mode, begin)--return int
--判断并转换值类型
for i=1,#value_table do
for p=1,#value_table[i][2] do
if value_table[i][2][p][1]:find("^%d+$") then--十进制
if value_table[i][2][p][1]:find("^[%d%.]+$") then--十进制
value_table[i][3]=10
elseif value_table[i][2][p][1]:find("^&H%w+&?$") then--ASS颜色格式
value_table[i][3]="rgb"
Expand Down

0 comments on commit a8f4248

Please sign in to comment.