From 985fe977de1147d608956a0695c7de98908791e2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 7 Feb 2014 21:35:15 +0100 Subject: quvi/xvidstage: Fix minjs unpack for side-by-side replacements --- .local/share/libquvi-scripts/media/xvidstage.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit