summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.local/share/libquvi-scripts/media/xvidstage.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/share/libquvi-scripts/media/xvidstage.lua b/.local/share/libquvi-scripts/media/xvidstage.lua
index a9df736..4c552bd 100644
--- a/.local/share/libquvi-scripts/media/xvidstage.lua
+++ b/.local/share/libquvi-scripts/media/xvidstage.lua
@@ -53,7 +53,9 @@ function Xvidstage.unpack_minjs(minjs)
for i=1,#data do
if data[i] ~= " " then
local s = Xvidstage.basen(i-1, base)
- code = code:gsub("([^a-z0-9])"..s.."([^a-z0-9])", "%1"..data[i].."%2")
+ repeat
+ code, count = code:gsub("([^a-zA-Z0-9])"..s.."([^a-zA-Z0-9])", '%1'..data[i]..'%2')
+ until count == 0
end
end