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

Function isValidCodeBlockMarker

pkg/workflow/xml_comments.go:167–170  ·  view source on GitHub ↗

isValidCodeBlockMarker checks if a trimmed line is a valid code block marker (3 or more ` or ~)

(trimmedLine string)

Source from the content-addressed store, hash-verified

165
166// isValidCodeBlockMarker checks if a trimmed line is a valid code block marker (3 or more ` or ~)
167func isValidCodeBlockMarker(trimmedLine string) bool {
168 marker, _ := extractCodeBlockMarker(trimmedLine)
169 return len(marker) >= 3
170}
171
172// isMatchingCodeBlockMarker checks if the trimmed line matches the opening marker
173func isMatchingCodeBlockMarker(trimmedLine string, openMarker string) bool {

Callers 2

removeXMLCommentsFunction · 0.85

Calls 1

extractCodeBlockMarkerFunction · 0.85

Tested by 1