mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-31 22:17:29 -08:00
9 lines
153 B
Lua
9 lines
153 B
Lua
local path_utils = {}
|
|
|
|
function path_utils.back(path)
|
|
local parsed_path, _ = path:gsub("/[^\\/]+/?$", "")
|
|
|
|
return parsed_path
|
|
end
|
|
|
|
return path_utils
|