telescope-project.nvim icon indicating copy to clipboard operation
telescope-project.nvim copied to clipboard

BUG: Cannot Corretly Parse Title

Open Bekaboo opened this issue 2 years ago • 0 comments

This error is at telescope-project.nvim/lua/telescope/_extensions/project/utils.lua, line 79:

local title = tostring(path):match("[^/]+$")

The regex cannot correctly parse pathes ended with / and will throw the error: attempt to concatenate local 'title' (a nil value) at line 82. image

The regex can be fixed by simply appending /? before the dollar sign.

Bekaboo avatar Jun 09 '22 04:06 Bekaboo