diff options
Diffstat (limited to 'lib/chef/monkey_patches/win32/registry.rb')
-rw-r--r-- | lib/chef/monkey_patches/win32/registry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/monkey_patches/win32/registry.rb b/lib/chef/monkey_patches/win32/registry.rb index a08d67becf..ad3626395f 100644 --- a/lib/chef/monkey_patches/win32/registry.rb +++ b/lib/chef/monkey_patches/win32/registry.rb @@ -57,7 +57,7 @@ module Win32 end - if RUBY_VERSION =~ /^2\.1/ + if RUBY_VERSION.match?(/^2\.1/) # ::Win32::Registry#write does not correctly handle data in Ruby 2.1 # This bug is _reportedly_ resolved in Ruby 2.1.7 and 2.2.3 # but fails in appveyor on 2.1.8 unless we keep applying this monkeypatch |