Skip to content

Commit 3181cef

Browse files
leiserfgL3MON4D3
authored andcommitted
Fix dot expansion in path
1 parent 4eead79 commit 3181cef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/luasnip/util/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262
function Path.expand(filepath)
6363
local expanded = filepath
6464
:gsub("^~", vim.env.HOME)
65-
:gsub("^[.]" .. sep, MYCONFIG_ROOT .. sep)
65+
:gsub("^[.][/\\]", MYCONFIG_ROOT .. sep)
6666
return uv.fs_realpath(expanded)
6767
end
6868

0 commit comments

Comments
 (0)