mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix miss.
This commit is contained in:
parent
141cb25b91
commit
7312c96e82
@ -26,7 +26,7 @@ func ChunkString(s string, chunkSize int) []string {
|
||||
var chunks []string
|
||||
runes := []rune(s)
|
||||
|
||||
if len(runes) == 0 {
|
||||
if len(runes) == 0 || len(runes) <= chunkSize {
|
||||
return []string{s}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user