- len(string) 返回字节数而非字符数,导致所有 2-8 字中文词被错误过滤 - 原始代码用 continue,现已恢复正确迭代逻辑 - 添加 unicode/utf8 导入 |
||
|---|---|---|
| .. | ||
| client | ||
| cmd/zhiyid | ||
| internal | ||
| proto | ||
| static | ||
| go.mod | ||
| go.sum | ||
| integration_test.go | ||
| zhiyid-new | ||
- len(string) 返回字节数而非字符数,导致所有 2-8 字中文词被错误过滤 - 原始代码用 continue,现已恢复正确迭代逻辑 - 添加 unicode/utf8 导入 |
||
|---|---|---|
| .. | ||
| client | ||
| cmd/zhiyid | ||
| internal | ||
| proto | ||
| static | ||
| go.mod | ||
| go.sum | ||
| integration_test.go | ||
| zhiyid-new | ||