MCPcopy Index your code
hub / github.com/coder/coder / hasSentenceBoundary

Function hasSentenceBoundary

coderd/x/chatd/quickgen.go:1040–1050  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

1038}
1039
1040func hasSentenceBoundary(text string) bool {
1041 for i, r := range text {
1042 switch r {
1043 case '.', '!', '?':
1044 if i+1 < len(text) && text[i+1] == ' ' {
1045 return true
1046 }
1047 }
1048 }
1049 return false
1050}

Callers 1

normalizeTurnStatusLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected