diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-02-07 21:35:15 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-02-07 21:35:15 +0100 |
commit | 985fe977de1147d608956a0695c7de98908791e2 (patch) | |
tree | 358067cfe7f4edec1195639c0329c6cd6e4a9c30 /.local/share/libquvi-scripts | |
parent | 63de3c669009f37e8a3d214d11999ff7ed2835b8 (diff) | |
download | dotfiles-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/libquvi-scripts')
-rw-r--r-- | .local/share/libquvi-scripts/media/xvidstage.lua | 4 |
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 |