Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2023-02-21 18:52:40 +0300
committerSarah German <sgerman@gitlab.com>2023-02-21 18:52:40 +0300
commit67a4b24ee58a0b50e98f4ee378a4bb6a223588ec (patch)
treedec40660a9c6725724f6fff8368e7934a9427d04
parent28b7ca5035269b5ef13de6fae62b263bfad5951c (diff)
parentc7fd152c2c199c0e8e3425b1b073151df613bc84 (diff)
Merge branch 'eread/fix-select-by-regexp-rubocop-violation' into 'main'
Fix Style/SelectByRegexp RuboCop violation See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3557 Merged-by: Sarah German <sgerman@gitlab.com> Approved-by: Sarah German <sgerman@gitlab.com> Co-authored-by: Evan Read <eread@gitlab.com>
-rw-r--r--lib/filters/gitlab_kramdown.rb2
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