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

Function includeDirectiveFilePath

pkg/parser/include_expander.go:328–335  ·  view source on GitHub ↗
(includePath string)

Source from the content-addressed store, hash-verified

326}
327
328func includeDirectiveFilePath(includePath string) string {
329 // Note: section references are ignored for frontmatter field extraction.
330 if strings.Contains(includePath, "#") {
331 parts := strings.SplitN(includePath, "#", 2)
332 return parts[0]
333 }
334 return includePath
335}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected