Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Cannot Corretly Parse Title #101

Open
Bekaboo opened this issue Jun 9, 2022 · 0 comments
Open

BUG: Cannot Corretly Parse Title #101

Bekaboo opened this issue Jun 9, 2022 · 0 comments

Comments

@Bekaboo
Copy link
Contributor

Bekaboo commented Jun 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant