Fix creating a new file (#179)

This commit is contained in:
tsukanov-as
2021-05-06 16:53:46 +02:00
committed by GitHub
parent 55a6888818
commit f637dc4db8
+1 -1
View File
@@ -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