lib/nanoc3/data_sources/filesystem.rb in nanoc3-3.1.4 vs lib/nanoc3/data_sources/filesystem.rb in nanoc3-3.1.5

- old
+ new

@@ -237,10 +237,10 @@ # Read data data = File.read(content_filename) # Check presence of metadata section - if data[0, 3] != '-'*3 && data[0, 5] != '-'*5 + if data !~ /\A-{3,5}\s*$/ return [ {}, data ] end # Split data pieces = data.split(/^(-{5}|-{3})\s*$/)