diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-19 21:10:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-19 21:10:34 +0300 |
commit | 9134da04883fb17a8636cddbd457210fa8f5ab38 (patch) | |
tree | 54bc4be56906752103f9054d8b52a2ca6620a878 /rubocop | |
parent | 8cfe3415e91f4403ded9cc44066a0a459688a609 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/static_translation_definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/static_translation_definition.rb b/rubocop/cop/static_translation_definition.rb index aea4dd6ae34..e7b8cdeab12 100644 --- a/rubocop/cop/static_translation_definition.rb +++ b/rubocop/cop/static_translation_definition.rb @@ -64,7 +64,7 @@ module RuboCop NON_METHOD_DEFINITIONS = %i[class_methods included prepended].to_set.freeze def_node_matcher :translation_method?, <<~PATTERN - (send _ {#{RESTRICT_ON_SEND.map(&:inspect).join(' ')}} str*) + (send _ {#{RESTRICT_ON_SEND.map(&:inspect).join(' ')}} {dstr str}+) PATTERN def on_send(node) |