Skip to content

Commit 8e28286

Browse files
committed
[encode] Replace all forbidden characters in paths, on windows
1 parent 2b635f2 commit 8e28286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/encode.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function get_output_string(dir, format, input, extension, title, from, to, profi
5858
output = string.gsub(output, "$x", extension)
5959
output = string.gsub(output, "$p", profile)
6060
if ON_WINDOWS then
61-
output = string.gsub(output, ":", "_")
61+
output = string.gsub(output, "[/\\|<>?:\"*]", "_")
6262
end
6363
if not string.find(output, "$n") then
6464
return files[output] and nil or output

0 commit comments

Comments
 (0)