We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6149891 commit d59f982Copy full SHA for d59f982
script/service/telemetry.lua
@@ -60,16 +60,16 @@ local function pushVersion(link)
60
end
61
62
local function occlusionPath(str)
63
- return str:gsub('[^"\r\n]+', function (chunk)
+ return str:gsub('(%s*)([^:"\r\n]+)', function (left, chunk)
64
if not chunk:find '[/\\]' then
65
return
66
67
local newStr, count = chunk:gsub('.+([/\\]script[/\\])', '***%1')
68
if count > 0 then
69
- return newStr
70
- elseif chunk:find '^%u:'
+ return left .. newStr
+ elseif chunk:sub(1, 1) == '\\'
71
or chunk:sub(1, 1) == '/' then
72
- return '***'
+ return left .. '***'
73
74
end)
75
0 commit comments