Skip to content

Commit

Permalink
fix: multi-rule-ignores for 3+ rules
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Nov 17, 2024
1 parent ed5cca2 commit 4de2dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rulebook/diagnostic-actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function actions.ignoreRule(diag)

-- used with `str.match`, this pattern will return the already ignored code(s)
local existingRulePattern = vim.pesc(ignoreComment[1] or ignoreComment)
:gsub("%%%%s", "([%%w,-_]+)") .. "%s*$"
:gsub("%%%%s", "([%%w-_, ]+)") .. "%s*$"

-----------------------------------------------------------------------------
if sourceConf.location == "prevLine" then
Expand Down

0 comments on commit 4de2dc9

Please sign in to comment.