util: enable comma in filenames

This commit is contained in:
hius07
2025-06-23 17:07:43 +03:00
committed by GitHub
parent b2895731f1
commit 6eb84ee93a

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