Skip to content

Commit

Permalink
feat: ignore_patterns support string type
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Aug 15, 2023
1 parent 58e3929 commit a780f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/guard/format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local function ignored(buf, patterns)
return false
end

for _, pattern in pairs(patterns) do
for _, pattern in pairs(util.as_table(patterns)) do
if fname:find(pattern) then
return true
end
Expand Down

0 comments on commit a780f10

Please sign in to comment.