mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
fix(xgplayer-subtitles): 修复时间戳兼容问题
This commit is contained in:
parent
f144b3b47b
commit
4579ed23bf
@ -1,4 +1,6 @@
|
||||
# 版本更新记录
|
||||
## 3.0.19
|
||||
>* feat(subtitles): 时间戳解析适配xxx:xx.xxx --> xxx:xx.xxx
|
||||
## 3.0.10
|
||||
>* feat(subtitles): 字幕展示增加逐字展示能力
|
||||
## 1.0.24
|
||||
|
@ -16,7 +16,7 @@ const ASS_CHECK = /^\[Script Info\].*/
|
||||
|
||||
const TIME_REGEX_LIST = [
|
||||
/[0-9]{1,3}:[0-9]{2}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,3}:[0-9]{2}:[0-9]{2}\.[0-9]{1,3}/,
|
||||
/[0-9]{1,2}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,2}:[0-9]{2}\.[0-9]{1,3}/,
|
||||
/[0-9]{1,3}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,3}:[0-9]{2}\.[0-9]{1,3}/,
|
||||
/[0-9]{1,2}\.[0-9]{1,3}-->[0-9]{1,2}\.[0-9]{1,3}/
|
||||
]
|
||||
// const LANG_REGEX = /^(<?.+?>(([\s\S])*?)<\/?.+?>)$/
|
||||
|
Loading…
x
Reference in New Issue
Block a user