diff options
| author | Kurenai <[email protected]> | 2021-10-15 19:07:50 +0800 |
|---|---|---|
| committer | Kurenai <[email protected]> | 2021-10-15 19:07:50 +0800 |
| commit | 41568b669ab6bf44e01c7b95584a03a9ce7de8eb (patch) | |
| tree | ec5f13910655ee3b8fd34cc66ef1732c58b1f128 /mkv.go | |
| parent | 2e0da3d465152e44f06d06f128875728c7deaf81 (diff) | |
重写了用于替换ass文件里字体的正则表达式,修复以前输出成品字幕不工作的问题,以及修复@前缀的字体名匹配不了的问题
Diffstat (limited to 'mkv.go')
| -rw-r--r-- | mkv.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -180,8 +180,7 @@ func createMKVs(dir string, slang, stitle string) bool { _ = os.RemoveAll(t) for i, item := range files { _, _, _, _f := splitPath(item) - _tf := reg.ReplaceAllString(_f, `\$0`) - tmp, _ := findPath(s, fmt.Sprintf(`%s\S*\.\S+$`, _tf)) + tmp, _ := findPath(s, fmt.Sprintf(`%s\S*\.\S+$`, regexp.QuoteMeta(_f))) asses := make([]string, 0) subs := make([]string, 0) p := path.Join(t, _f) |
