summaryrefslogtreecommitdiff
path: root/rubocop/cop/static_translation_definition.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rubocop/cop/static_translation_definition.rb')
-rw-r--r--rubocop/cop/static_translation_definition.rb2
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)