Skip to content

Commit

Permalink
fix syntax
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 b4dc707 commit 75fdbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_profiling/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def verbose_record_event?(event_name)
def ownership_for_file(file_path)
return nil if RspecProfiling.config.magic_comment.empty?
puts "Magic comment: #{RspecProfiling.config.magic_comment}"
OWNERSHIP_REGEX = /(^#\s*#{RspecProfiling.config.magic_comment}:\s*)\K(?<#{RspecProfiling.config.magic_comment}>.*$)/.freeze
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}"
Expand Down

0 comments on commit 75fdbed

Please sign in to comment.