diff options
author | Evan Read <eread@gitlab.com> | 2023-02-17 05:42:59 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2023-02-21 02:26:32 +0300 |
commit | c7fd152c2c199c0e8e3425b1b073151df613bc84 (patch) | |
tree | 27e229d75a539392e5529014d52a8d3f2ebc4574 /lib | |
parent | a388a70255516592cad703dbd222360c7badb1a3 (diff) |
Fix Style/SelectByRegexp RuboCop violation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filters/gitlab_kramdown.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filters/gitlab_kramdown.rb b/lib/filters/gitlab_kramdown.rb index 64a1d17a..63f4309f 100644 --- a/lib/filters/gitlab_kramdown.rb +++ b/lib/filters/gitlab_kramdown.rb @@ -35,7 +35,7 @@ module Nanoc::Filters if warning_filters r = Regexp.union(warning_filters) - warnings = document.warnings.reject { |warning| r =~ warning } + warnings = document.warnings.grep_v(r) else warnings = document.warnings end |