Update util.lua

This commit is contained in:
dami
2025-12-06 16:27:00 +08:00
parent fc20046aaf
commit 9ffd7c91b7
+1 -2
View File
@@ -90,7 +90,7 @@ end
-- 添加混淆代码
function _M.obf_add_data(content)
function _M.obf_rand_data(content)
content = content:gsub("<script(.-)>(.-)</script>", function(attrs, body)
local b = body
local function rand_ident(len)
@@ -131,7 +131,6 @@ function _M.obf_add_data(content)
b = b:gsub("%s*([%(%),;:%{%}%[%]%+%-%*%=<>])%s*", "%1")
return "<script" .. attrs .. ">" .. b .. "</script>"
end)
content = content:gsub("[\r\n]+", ""):gsub(">%s+<", "><")
return content
end