a876c3c780
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
9 lines
206 B
Go
9 lines
206 B
Go
package models
|
|
|
|
import "unicode/utf8"
|
|
|
|
// PlanContentLength returns the Unicode code point count used by plan history.
|
|
func PlanContentLength(content string) int {
|
|
return utf8.RuneCountInString(content)
|
|
}
|