summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/workspace.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index ea2c4737..529c8936 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -488,6 +488,7 @@ function m.normalize(path)
end
end)
path = util.expandPath(path)
+ path = path:gsub('^%.[/\\]+', '')
if platform.OS == 'Windows' then
path = path:gsub('[/\\]+', '\\')
:gsub('[/\\]+$', '')