Stricter start of line check via \A

This commit is contained in:
Ben Balter 2014-04-11 15:15:37 -04:00
parent 387cf2181a
commit b666ac787b
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ module Jekyll
end end
def has_yaml_header?(file) def has_yaml_header?(file)
!!(File.open(file).read =~ /^---\r?\n/) !!(File.open(file).read =~ /\A---\r?\n/)
end end
def limit_posts! def limit_posts!