diff --git a/modules/module.fontsData.ts b/modules/module.fontsData.ts index 402c906..5567e3a 100644 --- a/modules/module.fontsData.ts +++ b/modules/module.fontsData.ts @@ -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]); }