lib/microformats/format_parser.rb in microformats-4.0.5 vs lib/microformats/format_parser.rb in microformats-4.0.6

- old
+ new

@@ -322,10 +322,10 @@ element_type = element_class.downcase.split('-')[0] property_name = element_class.downcase.split('-')[1..-1].join('-') parsed_property = PropertyParser.new.parse(element, base: @base, element_type: element_type, backcompat: @mode_backcompat) - if not parsed_property.nil? and not parsed_property.empty? + if not parsed_property.nil? @properties[property_name] = [] if @properties[property_name].nil? @properties[property_name] << parsed_property end end parse_nodeset(element.children)