lib/MESH/heading.rb in mesh-medical-subject-headings-2.0.5 vs lib/MESH/heading.rb in mesh-medical-subject-headings-2.0.6

- old
+ new

@@ -21,10 +21,10 @@ @summary[locale] end def linkify_summary return if summary.nil? - @linkified_summary = summary.gsub(/[A-Z]+[A-Z,\s]+[A-Z]+/).each do |text| + @linkified_summary = summary.gsub(/[A-Z]+[A-Z,\s-]+[A-Z]+/).each do |text| heading = @tree.find_by_entry(text) heading ? yield(text, heading) : text end end