diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-24 21:11:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-24 21:11:44 +0300 |
commit | fd247970cfe1e98276c780fbdcca026b7960e42a (patch) | |
tree | ab7963eb9b30fd73283c526cb6ae4ca1ef61c06f /tooling | |
parent | df9890e9a702e2f12bbc8f022b916ca72820a292 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r-- | tooling/danger/specs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tooling/danger/specs.rb b/tooling/danger/specs.rb index 6c0459a4344..04f3c9d4c9a 100644 --- a/tooling/danger/specs.rb +++ b/tooling/danger/specs.rb @@ -5,7 +5,7 @@ module Tooling module Specs SPEC_FILES_REGEX = 'spec/' EE_PREFIX = 'ee/' - MATCH_WITH_ARRAY_REGEX = /(?<to>to\(?\s*)(?<matcher>match|eq)(?<expectation>[( ]?\[[^\]]+)/.freeze + MATCH_WITH_ARRAY_REGEX = /(?<to>to\(?\s*)(?<matcher>match|eq)(?<expectation>[( ]?\[(?=.*,)[^\]]+)/.freeze MATCH_WITH_ARRAY_REPLACEMENT = '\k<to>match_array\k<expectation>' PROJECT_FACTORIES = %w[ |