diff --git a/src/serialization/ManifestJson.ts b/src/serialization/ManifestJson.ts index 104e6ec..68e9cf8 100644 --- a/src/serialization/ManifestJson.ts +++ b/src/serialization/ManifestJson.ts @@ -4,7 +4,7 @@ import MetadataJson from './MetadataJson'; type HighLight = string | undefined; -type HighLights = { [propertyName: string]: string } | undefined; +type HighLights = { [propertyName: string]: string[] } | undefined; @JsonObject('ManifestJson') class ManifestJson { @@ -81,7 +81,7 @@ class ManifestJson { return this.highlights && this.highlights[value]; }); - return match && this.highlights ? this.highlights[match] : fallback; + return match && this.highlights ? this.highlights[match].join(' ') : fallback; } }