summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-12-26 18:50:43 -0800
committerTim Smith <tsmith84@gmail.com>2021-12-26 18:50:43 -0800
commitf84a238a1d8d0060d5064eee0b74ed942088d4fd (patch)
treed26039e8502c84a0c2e2c947227bab5f02139c81 /Gemfile
parent50a0001bae754c66feb69c84b64cb305a03a34d2 (diff)
downloadchef-Performance_RegexpMatch.tar.gz
Resolve Performance/RegexpMatch warningsPerformance_RegexpMatch
Do regex checks without creating objects for the results. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 4923e3e4a6..affd8adcc0 100644
--- a/Gemfile
+++ b/Gemfile
@@ -29,7 +29,7 @@ group(:omnibus_package, :pry) do
# some work is ongoing? https://github.com/deivid-rodriguez/pry-byebug/issues/343
gem "pry", "= 0.13.0"
# byebug does not install on freebsd on ruby 3.0
- gem "pry-byebug" unless RUBY_PLATFORM =~ /freebsd/i
+ gem "pry-byebug" unless RUBY_PLATFORM.match?(/freebsd/i)
gem "pry-stack_explorer"
end