mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
1 parent
798bf60c56
commit
4d1cb50003
1 file changed
+2
-2
+2
-2
@@ -181,7 +181,7 @@ func chompFrontmatterStartComment(r *bufio.Reader) (err error) {
|
||||
return nil
|
||||
}
|
||||
testStr := strings.TrimSuffix(str[0:lineEnd], "\r")
|
||||
if strings.Index(testStr, HTMLCommentEnd) != -1 {
|
||||
if strings.Contains(testStr, HTMLCommentEnd) {
|
||||
return nil
|
||||
}
|
||||
buf := make([]byte, lineEnd)
|
||||
@@ -208,7 +208,7 @@ func chompFrontmatterEndComment(r *bufio.Reader) (err error) {
|
||||
return nil
|
||||
}
|
||||
testStr := strings.TrimSuffix(str[0:lineEnd], "\r")
|
||||
if strings.Index(testStr, HTMLCommentStart) != -1 {
|
||||
if strings.Contains(testStr, HTMLCommentStart) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user