build all packages

This commit is contained in:
Harvey committed 2019-11-11 09:11:36 +08:00
1 parent da45181d18
commit 66bb5326ec
11 files changed
+57 -31

No files matched your search

+1
View File
@@ -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>')