Stricter start of line check via \A
This commit is contained in:
parent
387cf2181a
commit
b666ac787b
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue