Skip to content

Commit d0ffd70

Browse files
chore(utils): handle ~ appearing in middle of path (#174)
1 parent 40701b6 commit d0ffd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/sqlite/utils.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end)()
100100

101101
M.expand = function(path)
102102
local expanded
103-
if string.find(path, "~") then
103+
if string.find(path, "^~") then
104104
expanded = string.gsub(path, "^~", os.getenv "HOME")
105105
elseif string.find(path, "^%.") then
106106
expanded = luv.fs_realpath(path)

0 commit comments

Comments
 (0)