summaryrefslogtreecommitdiff
path: root/.local/share
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2014-02-07 21:35:15 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2014-02-07 21:35:15 +0100
commit985fe977de1147d608956a0695c7de98908791e2 (patch)
tree358067cfe7f4edec1195639c0329c6cd6e4a9c30 /.local/share
parent63de3c669009f37e8a3d214d11999ff7ed2835b8 (diff)
downloaddotfiles-985fe977de1147d608956a0695c7de98908791e2.tar.gz
dotfiles-985fe977de1147d608956a0695c7de98908791e2.tar.bz2
dotfiles-985fe977de1147d608956a0695c7de98908791e2.zip
quvi/xvidstage: Fix minjs unpack for side-by-side replacements
Diffstat (limited to '.local/share')
-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