retain the helpful comment
This commit is contained in:
parent
3bad51d9a7
commit
a21d76e952
1 changed files with 1 additions and 0 deletions
|
|
@ -322,6 +322,7 @@ func (sl *SkillsLoader) parseSimpleYAML(content string) map[string]string {
|
|||
}
|
||||
|
||||
func (sl *SkillsLoader) extractFrontmatter(content string) string {
|
||||
// Support \n (Unix), \r\n (Windows), and \r (classic Mac) line endings for frontmatter blocks
|
||||
match := reFrontmatter.FindStringSubmatch(content)
|
||||
if len(match) > 1 {
|
||||
return match[1]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue