Fix creating a new file (#179)

This commit is contained in:
tsukanov-as 2021-05-06 17:53:46 +03:00 committed by GitHub
parent 55a6888818
commit f637dc4db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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