*should* fix the script when the first tag to clean is a kf

This commit is contained in:
odrling 2020-08-19 19:48:08 +02:00
parent 5e2cb51885
commit b77a8d6054
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ script_version = "1.0"
function special_k(subs, sel)
-- if the first tag is K/kf this would break the timing for the previous timing
local expr = "^(.-){\\(ko?)([0-9.]*)[^}]-}([^{]-){\\[kK][fo]?([0-9.]*)[^}]-}( -{(\\[kK][fo]?)[0-9.]*[^}]-}.*)$"
local expr = "^(.-){\\(ko?)([0-9.]+)[^}]-}([^{]-){\\[kK][fo]?([0-9.]+)[^}]-}( -{(\\[kK][fo]?)[0-9.]+[^}]-}.*)$"
for _, i in ipairs(sel) do
line = subs[i]