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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tooling/danger/database_dictionary.rb')
-rw-r--r--tooling/danger/database_dictionary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tooling/danger/database_dictionary.rb b/tooling/danger/database_dictionary.rb
index 8776532ff84..2ea937efd73 100644
--- a/tooling/danger/database_dictionary.rb
+++ b/tooling/danger/database_dictionary.rb
@@ -14,7 +14,7 @@ module Tooling
def database_dictionary_files(change_type:)
files = helper.public_send("#{change_type}_files") # rubocop:disable GitlabSecurity/PublicSend
- files.filter_map { |path| Found.new(path) if path =~ DICTIONARY_PATH_REGEXP }
+ files.filter_map { |path| Found.new(path) if DICTIONARY_PATH_REGEXP.match?(path) }
end
class Found