Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字幕的RegExp怎么设置? #139

Open
hjane opened this issue Oct 31, 2021 · 2 comments
Open

字幕的RegExp怎么设置? #139

hjane opened this issue Oct 31, 2021 · 2 comments

Comments

@hjane
Copy link

hjane commented Oct 31, 2021

我希望字幕文字能按照标点和换行来拆分,但没有效果,需要怎么设置?
subtitle.setRegexp(new RegExp(/(。|?|?|!|!|;|,|\n)/gi));

@changqing91
Copy link
Contributor

你的正则有语法错误

@hjane
Copy link
Author

hjane commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants