Skip to content

Commit

Permalink
More efficient regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed Aug 6, 2023
1 parent ebeb1fb commit 4674d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mail_catcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def which?(command)
end

def windows?
RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
RbConfig::CONFIG["host_os"].match?(/mswin|mingw/)
end

def browseable?
Expand Down

0 comments on commit 4674d89

Please sign in to comment.