Skip to content

Commit

Permalink
Add end signal to wildcard2pattern
Browse files Browse the repository at this point in the history
This avoids stuff like `*.md` from blocking `xyz.mdl`.
  • Loading branch information
Vurv78 committed Jul 22, 2023
1 parent 59b6207 commit 2771f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gma.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ local function decode(json --[[@param json string]]) ---@return table
end

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

do
Expand Down

0 comments on commit 2771f15

Please sign in to comment.