Skip to content

Commit bf6253c

Browse files
committed
FileOps: fix path validation on non-windows systems
1 parent 048cf21 commit bf6253c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/DependencyControl/FileOps.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class FileOps
282282
if #path > pathMatch.maxLen
283283
return false, msgs.validateFullPath.tooLong\format #path, maxLen
284284
-- check for invalid characters
285-
invChar = path\match pathMatch.invalidChars, ffi.os == "Windows" and 3
285+
invChar = path\match pathMatch.invalidChars, ffi.os == "Windows" and 3 or nil
286286
if invChar
287287
return false, msgs.validateFullPath.invalidChars\format invChar
288288
-- check for reserved file names

0 commit comments

Comments
 (0)