mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-03 01:25:33 +02:00
fix(root): escape glob expressions
This commit is contained in:
parent
b285a46dfc
commit
7414e84af9
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ function M.detectors.pattern(buf, patterns)
|
|||
if name == p then
|
||||
return true
|
||||
end
|
||||
if p:sub(1, 1) == "*" and name:find(p:sub(2) .. "$") then
|
||||
if p:sub(1, 1) == "*" and name:find(vim.pesc(p:sub(2)) .. "$") then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue