Skip to content

Commit

Permalink
missed variabled rename
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Thoreson <[email protected]>
  • Loading branch information
erikthoreson24 committed Mar 11, 2024
1 parent 75fdbed commit 44c1e8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rspec_profiling/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def ownership_for_file(file_path)
ownership_regex = /(^#\s*#{RspecProfiling.config.magic_comment}:\s*)\K(?<#{RspecProfiling.config.magic_comment}>.*$)/.freeze
comments = top_comments_from_file(file_path)
puts "Comments: #{comments}"
puts "REGEX: #{OWNERSHIP_REGEX}"
matching_line = comments.detect { |line| line.match?(OWNERSHIP_REGEX) }
puts "REGEX: #{ownership_regex}"
matching_line = comments.detect { |line| line.match?(ownership_regex) }
puts "Matching line: #{matching_line}"
extract_ownership(matching_line, OWNERSHIP_REGEX) if matching_line
extract_ownership(matching_line, ownership_regex) if matching_line
end

def top_comments_from_file(file_path)
Expand Down

0 comments on commit 44c1e8b

Please sign in to comment.