diff options
Diffstat (limited to 'lib/chef/util/editor.rb')
-rw-r--r-- | lib/chef/util/editor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/util/editor.rb b/lib/chef/util/editor.rb index fa4f0ec12e..d4a6e00381 100644 --- a/lib/chef/util/editor.rb +++ b/lib/chef/util/editor.rb @@ -61,7 +61,7 @@ class Chef count = 0 @lines.map! do |line| - if line.match(search) + if line.match?(search) count += 1 line.gsub!(search, replace) else @@ -76,7 +76,7 @@ class Chef count = 0 @lines.map! do |line| - if line.match(search) + if line.match?(search) count += 1 replace else |