mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-18 00:09:27 +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
|
if name == p then
|
||||||
return true
|
return true
|
||||||
end
|
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
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue