ass inline font regex optimization
This commit is contained in:
parent
42da4ebd30
commit
7d5e8fa461
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ function assFonts(ass: string){
|
|||
styles.push(addStyle[1]);
|
||||
}
|
||||
}
|
||||
const fontMatches = ass.matchAll(/\\fn(.*?)(?:\\|})/g);
|
||||
const fontMatches = ass.matchAll(/\\fn([^\\}]+)/g);
|
||||
for (const match of fontMatches) {
|
||||
styles.push(match[1]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue