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