Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

zapret-antidpi: allow some desync funcs to work with arbitrary blobs

This commit is contained in:
bol-van
2025-11-28 16:21:05 +03:00
parent 4923ac7bc5
commit bebb2ccabf
2 changed files with 30 additions and 16 deletions

View File

@@ -198,6 +198,9 @@ function blob(desync, name, def)
end
return blob
end
function blob_or_def(desync, name, def)
return name and blob(desync,name,def) or def
end
-- repeat pattern as needed to extract part of it with any length
-- pat="12345" len=10 offset=4 => "4512345123"