Skip to content

Commit 2771f15

Browse files
committed
Add end signal to wildcard2pattern
This avoids stuff like `*.md` from blocking `xyz.mdl`.
1 parent 59b6207 commit 2771f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gma.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ local function decode(json --[[@param json string]]) ---@return table
8686
end
8787

8888
local function wildcard2pattern(s --[[@param s string]])
89-
return "^%./" .. s:gsub("%.", "%%."):gsub("%*", ".*")
89+
return "^%./" .. s:gsub("%.", "%%."):gsub("%*", ".*") .. "$"
9090
end
9191

9292
do

0 commit comments

Comments
 (0)