lib/facter/util/utils.rb in facter-4.3.1 vs lib/facter/util/utils.rb in facter-4.4.0

- old
+ new

@@ -12,10 +12,10 @@ end end def self.split_user_query(user_query) queries = user_query.split('.') - queries.map! { |query| query =~ /^[0-9]+$/ ? query.to_i : query } + queries.map! { |query| /^[0-9]+$/.match?(query) ? query.to_i : query } end def self.deep_stringify_keys(object) case object when Hash