mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-23 14:54:05 +00:00
parent
798bf60c56
commit
4d1cb50003
1 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ func chompFrontmatterStartComment(r *bufio.Reader) (err error) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
testStr := strings.TrimSuffix(str[0:lineEnd], "\r")
|
testStr := strings.TrimSuffix(str[0:lineEnd], "\r")
|
||||||
if strings.Index(testStr, HTMLCommentEnd) != -1 {
|
if strings.Contains(testStr, HTMLCommentEnd) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
buf := make([]byte, lineEnd)
|
buf := make([]byte, lineEnd)
|
||||||
|
@ -208,7 +208,7 @@ func chompFrontmatterEndComment(r *bufio.Reader) (err error) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
testStr := strings.TrimSuffix(str[0:lineEnd], "\r")
|
testStr := strings.TrimSuffix(str[0:lineEnd], "\r")
|
||||||
if strings.Index(testStr, HTMLCommentStart) != -1 {
|
if strings.Contains(testStr, HTMLCommentStart) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue