Fix bug with font name conversion
This commit is contained in:
parent
07b7249b39
commit
686be9bf11
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ export interface Spec {
|
||||||
export function parse_spec(input: string): Spec {
|
export function parse_spec(input: string): Spec {
|
||||||
let spec = {}
|
let spec = {}
|
||||||
let [family_name, ...rest] = input.split(":")
|
let [family_name, ...rest] = input.split(":")
|
||||||
spec["font"] = family_name.replace("+", " ")
|
spec["font"] = family_name.replaceAll("+", " ")
|
||||||
|
|
||||||
let variants = []
|
let variants = []
|
||||||
if (rest.length > 0) {
|
if (rest.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue