(text string, limit int)
| 219 | } |
| 220 | |
| 221 | func firstCommandRunes(text string, limit int) string { |
| 222 | if limit <= 0 { |
| 223 | return "" |
| 224 | } |
| 225 | runes := []rune(text) |
| 226 | if len(runes) <= limit { |
| 227 | return text |
| 228 | } |
| 229 | return string(runes[:limit]) |
| 230 | } |
no outgoing calls
no test coverage detected