Skip to content

Commit

Permalink
- Revert change from =~ to match? to allow for nil if $TERM undefined.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 14281]
  • Loading branch information
zenspider committed Aug 15, 2024
1 parent 393e334 commit 9e7c58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/pride_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.plugin_pride_options opts, _options # :nodoc:
def self.plugin_pride_init options # :nodoc:
return unless PrideIO.pride?

klass = ENV["TERM"].match?(/^xterm|-256color$/) ? PrideLOL : PrideIO
klass = ENV["TERM"] =~ /^xterm|-256color$/ ? PrideLOL : PrideIO
io = klass.new options[:io]

self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
Expand Down

0 comments on commit 9e7c58d

Please sign in to comment.