Fix creating a new file (#179)
This commit is contained in:
1 parent
55a6888818
commit
f637dc4db8
1 file changed
+1
-1
@@ -229,7 +229,7 @@ end
|
||||
|
||||
|
||||
function common.normalize_path(filename)
|
||||
if PATHSEP == '\\' then
|
||||
if filename and PATHSEP == '\\' then
|
||||
filename = filename:gsub('[/\\]', '\\')
|
||||
local drive, rem = filename:match('^([a-zA-Z])(:.*)')
|
||||
return drive and drive:upper() .. rem or filename
|
||||
|
||||
Reference in new issue
Block a user