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

Function matchesPathSegmentKey

pkg/parser/json_path_locator.go:411–414  ·  view source on GitHub ↗
(trimmedLine, key string)

Source from the content-addressed store, hash-verified

409}
410
411func matchesPathSegmentKey(trimmedLine, key string) bool {
412 keyPattern := regexp.MustCompile(`^` + regexp.QuoteMeta(key) + `\s*:`)
413 return keyPattern.MatchString(trimmedLine)
414}
415
416func findNestedSectionEnd(lines []string, foundLine, baseIndentLevel int) int {
417 endLine := len(lines) - 1 // Default to end of file

Callers 1

findNestedSectionStartFunction · 0.85

Calls 1

MustCompileMethod · 0.80

Tested by

no test coverage detected