Skip to content

Commit d59f982

Browse files
committed
update occlusion path
1 parent 6149891 commit d59f982

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/service/telemetry.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ local function pushVersion(link)
6060
end
6161

6262
local function occlusionPath(str)
63-
return str:gsub('[^"\r\n]+', function (chunk)
63+
return str:gsub('(%s*)([^:"\r\n]+)', function (left, chunk)
6464
if not chunk:find '[/\\]' then
6565
return
6666
end
6767
local newStr, count = chunk:gsub('.+([/\\]script[/\\])', '***%1')
6868
if count > 0 then
69-
return newStr
70-
elseif chunk:find '^%u:'
69+
return left .. newStr
70+
elseif chunk:sub(1, 1) == '\\'
7171
or chunk:sub(1, 1) == '/' then
72-
return '***'
72+
return left .. '***'
7373
end
7474
end)
7575
end

0 commit comments

Comments
 (0)