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

View File

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