(text string)
| 1038 | } |
| 1039 | |
| 1040 | func 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 | } |
no outgoing calls
no test coverage detected