Unverified Commit 067fa225 authored by Xu Song's avatar Xu Song Committed by GitHub
Browse files

[Bugfix]Fix search start_index of stop_checker (#13280)

parent 90763256
...@@ -113,7 +113,7 @@ class StopChecker: ...@@ -113,7 +113,7 @@ class StopChecker:
stop_string_len = len(stop_str) stop_string_len = len(stop_str)
# Avoid searching already-searched text. # Avoid searching already-searched text.
stop_index = output_text.find(stop_str, stop_index = output_text.find(stop_str,
-new_char_count - stop_string_len) 1 - new_char_count - stop_string_len)
if stop_index == -1: if stop_index == -1:
continue continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment