We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300bb9d commit 1b5cb1aCopy full SHA for 1b5cb1a
lib/dtutils/string.lua
@@ -309,9 +309,9 @@ local function _should_be_sanitized(str)
309
local SAFE_POSIX_FILENAME_CHARS <const> = "[^%w/._%-]+"
310
local SAFE_WIN_FILENAME_CHARS <const> = "[^%w\\._%-:]+"
311
312
- local pattern = SAFE_POSIX_STRING_CHARS
+ local pattern = SAFE_POSIX_FILENAME_CHARS
313
if dt.configuration.running_os == "windows" then
314
- pattern = SAFE_WIN_STRING_CHARS
+ pattern = SAFE_WIN_FILENAME_CHARS
315
end
316
317
log.log_level(dtutils_string.log_level)
0 commit comments