Skip to content

Commit 1b5cb1a

Browse files
committed
lib/dtutils/string - corrected constrant names in assignment
1 parent 300bb9d commit 1b5cb1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dtutils/string.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ local function _should_be_sanitized(str)
309309
local SAFE_POSIX_FILENAME_CHARS <const> = "[^%w/._%-]+"
310310
local SAFE_WIN_FILENAME_CHARS <const> = "[^%w\\._%-:]+"
311311

312-
local pattern = SAFE_POSIX_STRING_CHARS
312+
local pattern = SAFE_POSIX_FILENAME_CHARS
313313
if dt.configuration.running_os == "windows" then
314-
pattern = SAFE_WIN_STRING_CHARS
314+
pattern = SAFE_WIN_FILENAME_CHARS
315315
end
316316

317317
log.log_level(dtutils_string.log_level)

0 commit comments

Comments
 (0)