mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04: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