mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-10-30 12:50:18 +08:00
Update utils.py (#17)
This commit is contained in:
1 parent
a3ac2fd1f5
commit
e6ee7c5980
1 file changed
+1
-1
+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