util: enable comma in filenames (#13985)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

This commit is contained in:
hius07
2025-06-23 21:53:33 +03:00
committed by GitHub
parent b2895731f1
commit a4bb9d688b

View File

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