util: no escaping, except backslash

This commit is contained in:
hius07
2025-06-23 17:31:29 +03:00
committed by GitHub
parent 6eb84ee93a
commit 5e4460810c

View File

@@ -955,7 +955,7 @@ end
---- @treturn string sanitized filename
local function replaceAllInvalidChars(str)
if str then
return str:gsub('[\\%/:%*%?%"%<%>%|]', '_')
return str:gsub('[\\/:*?"<>|]', '_')
end
end