mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
fix: loop reset nextStart
This commit is contained in:
parent
d785c8c377
commit
89f841c126
@ -40,6 +40,7 @@ func (r *replacer) Replace(text string) string {
|
||||
replaced := r.mapping[string(target[:used])]
|
||||
target = append([]rune(replaced), target[used:]...)
|
||||
cur = r.node
|
||||
nextStart = 0
|
||||
} else {
|
||||
buf.WriteString(string(target[:used]))
|
||||
target = target[used:]
|
||||
|
Loading…
Reference in New Issue
Block a user