修正了一些错误

This commit is contained in:
XTer 2024-03-19 17:08:30 +08:00
parent 71ba1c1abe
commit 27358f1e2b
2 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ def auto_cut(inp, max_length=30):
final_items = []
for item in items:
final_items+=process_commas(item,max_length=max_length).split("\n")
final_items = [item for item in final_items if item.strip() and not (len(item.strip())==2 and item[0] in "?!,。?!~.") and not item.isspace() and not item in "?!,。?!~."]
final_items = [item for item in final_items if item.strip() and not (len(item.strip()) == 1 and item.strip() in "?!,。?!~")]
return "\n".join(final_items)

@ -1 +1 @@
Subproject commit fab890cf7c4543665bce47181115ad39cd6f518a
Subproject commit 2de410df8b8a0725dbda04105509457f0163c18e