lib/review/book/book_unit.rb in review-5.3.0 vs lib/review/book/book_unit.rb in review-5.4.0

- old
+ new

@@ -84,10 +84,10 @@ @title = '' return @title unless content content.each_line do |line| - if line =~ /\A=+/ + if /\A=+/.match?(line) @title = line.sub(/\A=+(\[.+?\])?(\{.+?\})?/, '').strip break end end @title