mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
build all packages
This commit is contained in:
1 parent
da45181d18
commit
66bb5326ec
11 files changed
+57
-31
No files matched your search
@@ -151,6 +151,7 @@ export function tooltip(target, msg, pos = 'up') {
|
||||
export function srtToVtt(srtText) {
|
||||
return 'WEBVTT \r\n\r\n'.concat(
|
||||
srtText
|
||||
.replace(/{[\s\S]*?}/g, '')
|
||||
.replace(/\{\\([ibu])\}/g, '</$1>')
|
||||
.replace(/\{\\([ibu])1\}/g, '<$1>')
|
||||
.replace(/\{([ibu])\}/g, '<$1>')
|
||||
|
||||
Reference in new issue
Block a user