Fix bug with font name conversion

This commit is contained in:
Sofía Aritz 2023-05-20 21:45:35 +02:00
parent 07b7249b39
commit 686be9bf11

View file

@ -8,7 +8,7 @@ export interface Spec {
export function parse_spec(input: string): Spec {
let spec = {}
let [family_name, ...rest] = input.split(":")
spec["font"] = family_name.replace("+", " ")
spec["font"] = family_name.replaceAll("+", " ")
let variants = []
if (rest.length > 0) {