diff options
Diffstat (limited to 'lib/chef/chef_fs/file_pattern.rb')
-rw-r--r-- | lib/chef/chef_fs/file_pattern.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_pattern.rb b/lib/chef/chef_fs/file_pattern.rb index 10e8c12c20..74be64cd84 100644 --- a/lib/chef/chef_fs/file_pattern.rb +++ b/lib/chef/chef_fs/file_pattern.rb @@ -258,7 +258,7 @@ class Chef has_double_star = false pattern.split(pattern_special_characters).each_with_index do |part, index| # Odd indexes from the split are symbols. Even are normal bits. - if index % 2 == 0 + if index.even? exact << part if !exact.nil? regexp << part else |