retain the helpful comment

This commit is contained in:
Yasuhiro Matsumoto 2026-02-24 10:46:16 +09:00
parent 3bad51d9a7
commit a21d76e952
No known key found for this signature in database
GPG key ID: F2EA90DF2C146D1E

View file

@ -322,6 +322,7 @@ func (sl *SkillsLoader) parseSimpleYAML(content string) map[string]string {
} }
func (sl *SkillsLoader) extractFrontmatter(content 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) match := reFrontmatter.FindStringSubmatch(content)
if len(match) > 1 { if len(match) > 1 {
return match[1] return match[1]