MCPcopy Create free account
hub / github.com/github/gh-aw / parseOriginalFrontmatter

Function parseOriginalFrontmatter

pkg/parser/import_field_extractor.go:187–192  ·  view source on GitHub ↗
(content []byte, fullPath, origContent string)

Source from the content-addressed store, hash-verified

185}
186
187func parseOriginalFrontmatter(content []byte, fullPath, origContent string) (*FrontmatterResult, error) {
188 if strings.HasPrefix(fullPath, BuiltinPathPrefix) {
189 return ExtractFrontmatterFromBuiltinFile(fullPath, content)
190 }
191 return ExtractFrontmatterFromContent(origContent)
192}
193
194func frontmatterMapOrEmpty(result *FrontmatterResult, parseErr error) map[string]any {
195 if parseErr != nil {

Callers 1

prepareFrontmatterMethod · 0.85

Tested by

no test coverage detected