From f637dc4db80e125ab681e73398d76d07b7bdfefd Mon Sep 17 00:00:00 2001 From: tsukanov-as Date: Thu, 6 May 2021 17:53:46 +0300 Subject: [PATCH] Fix creating a new file (#179) --- data/core/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/common.lua b/data/core/common.lua index 022dd1dc..5f6e8bc9 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -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