mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
don't allow | in generic family
This commit is contained in:
parent
1ae45c5445
commit
b9d9343f51
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ export class EditingArea extends HTMLDivElement {
|
|||
|
||||
quoteFontFamily(fontFamily: string): string {
|
||||
// generic families (e.g. sans-serif) must not be quoted
|
||||
if (!/^[a-z|-]+$/.test(fontFamily)) {
|
||||
if (!/^[-a-z]+$/.test(fontFamily)) {
|
||||
fontFamily = `"${fontFamily}"`;
|
||||
}
|
||||
return fontFamily;
|
||||
|
|
|
|||
Loading…
Reference in a new issue