mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
Update utils.py (#17)
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ def cut_trailing_sentence(text):
|
||||
if last_punc <= 0:
|
||||
last_punc = len(text)-1
|
||||
|
||||
et_token = text.rfind("<")
|
||||
et_token = text.find("<")
|
||||
if et_token > 0:
|
||||
last_punc = min(last_punc, et_token-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user