Skip to content

Commit

Permalink
#67 Result highlights are returned in an array and should be concaten…
Browse files Browse the repository at this point in the history
…ated
  • Loading branch information
gpailler committed May 5, 2024
1 parent 9aa747b commit e122652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serialization/ManifestJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e122652

Please sign in to comment.