Update serve_font.js
This commit is contained in:
parent
7a81e47c09
commit
0dcf296425
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ export async function serve_font(options, allowedFonts, programOpts) {
|
|||
const sanitizedFontStack = fontStackParts
|
||||
.map((font) => {
|
||||
const fontMatch = font?.match(/^[\w\s-]+$/);
|
||||
return fontMatch?.[0];
|
||||
return fontMatch?.[0] || 'invalid';
|
||||
})
|
||||
.filter(Boolean)
|
||||
.join(',');
|
||||
|
|
Loading…
Reference in a new issue