Skip to content

Commit

Permalink
fix: pangu ignore last char when processing entries
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Aug 18, 2024
1 parent c9111ef commit 9344178
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ object StringUtils {
if (panguText.length == text.length) return Pair(panguText, entities) // processed or unnecessary

var skip = 0
for (i in 0 until text.lastIndex) {
for (i in text.indices) {
if (i + skip >= panguText.length) break
if (text[i] == panguText[i + skip]) continue

Expand Down

0 comments on commit 9344178

Please sign in to comment.