Skip to content

Commit

Permalink
update comment and rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te-moon committed May 7, 2024
1 parent 2ab3bb2 commit 2ad1740
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/edge_tts/submaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ def generate_subs_based_on_punc(self, text) -> str:
# return text_list

def clause(self) -> list[str]:
# 构建正则表达式模式,匹配任意一个或多个标点符号
pattern = '(' + '|'.join(punc for punc in PUNCTUATION) + ')'
# 使用正则表达式分割文本
text_list = re.split(pattern, text)

index = 0
Expand Down
File renamed without changes.

0 comments on commit 2ad1740

Please sign in to comment.