# File lib/knife-solo/resources/patch_cookbooks/chef-solo-search/libraries/search/parser.rb, line 101 def match( item ) if self.text_value.count("_") > 0 item.merge!(build_flat_hash(item)) end if self.text_value.end_with?("*") part = self.text_value.chomp("*") item.keys.collect{ |key| key.start_with?(part)? key: nil}.compact else if item.has_key?(self.text_value) [self.text_value,] else nil end end end