lib/jazzy/search_builder.rb in jazzy-0.14.3 vs lib/jazzy/search_builder.rb in jazzy-0.14.4
- old
+ new
@@ -8,10 +8,10 @@
end
index = decls.to_h do |d|
[d.url,
{
name: d.name,
- abstract: d.abstract && d.abstract.split(/\n/).map(&:strip).first,
+ abstract: d.abstract && d.abstract.split("\n").map(&:strip).first,
parent_name: d.parent_in_code&.name,
}.reject { |_, v| v.nil? || v.empty? }]
end
File.write(File.join(output_dir, 'search.json'), index.to_json)
end