Skip to content

Commit

Permalink
fix the bug where the last subtitle line was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
harry committed Apr 15, 2024
1 parent 2e58d7c commit 1e96357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def split_string_by_punctuations(s):
else:
result.append(txt.strip())
txt = ""

result.append(txt.strip())
# filter empty string
result = list(filter(None, result))
return result
Expand Down

0 comments on commit 1e96357

Please sign in to comment.