From b77a8d605436070a2e48868c7bec29de8233fd56 Mon Sep 17 00:00:00 2001 From: odrling Date: Wed, 19 Aug 2020 19:48:08 +0200 Subject: [PATCH] *should* fix the script when the first tag to clean is a kf --- clean-k-tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clean-k-tags.lua b/clean-k-tags.lua index e7b9e33..2cb6e4f 100644 --- a/clean-k-tags.lua +++ b/clean-k-tags.lua @@ -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]