Skip to content

Commit

Permalink
Small regexp tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Feb 16, 2024
1 parent 1d8c4f6 commit cdee16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mighty_test/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_name_at_line(number)
attr_reader :path

def match_minitest_method_name(line)
line[/^\s+(?:focus\s+)?def (test_\w+)/, 1]
line[/^\s*(?:focus\s+)?def\s+(test_\w+)/, 1]
end

def match_active_support_test_string(line)
Expand Down

0 comments on commit cdee16e

Please sign in to comment.