diff --git a/lib/rubocop/cop/layout/heredoc_indentation.rb b/lib/rubocop/cop/layout/heredoc_indentation.rb index e2c617567ac..8f1bb8d9568 100644 --- a/lib/rubocop/cop/layout/heredoc_indentation.rb +++ b/lib/rubocop/cop/layout/heredoc_indentation.rb @@ -161,11 +161,11 @@ def indentation_width end def heredoc_body(node) - node.loc.heredoc_body.source.scrub + node.loc.heredoc_body.source end def heredoc_end(node) - node.loc.heredoc_end.source.scrub + node.loc.heredoc_end.source end end end diff --git a/lib/rubocop/cop/lint/interpolation_check.rb b/lib/rubocop/cop/lint/interpolation_check.rb index 766677ced48..5418402e341 100644 --- a/lib/rubocop/cop/lint/interpolation_check.rb +++ b/lib/rubocop/cop/lint/interpolation_check.rb @@ -23,7 +23,7 @@ class InterpolationCheck < Cop def on_str(node) parent = node.parent return if parent && (parent.dstr_type? || parent.regexp_type?) - return unless /(?