Skip to content

Commit 902c3a6

Browse files
Allow hyphens in font names for error reports (BL-15273)
1 parent f2363d6 commit 902c3a6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/model/Book.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ export class Book {
149149
}
150150

151151
public getMissingFontNames(): string[] {
152+
const fixedMarker = "MissingFont - ";
152153
return this.harvestLog
153-
.filter((entry) => entry.indexOf("MissingFont") >= 0)
154-
.map((entry) => entry.split("-")[1].trim());
154+
.filter((entry) => entry.indexOf(fixedMarker) >= 0)
155+
.map((entry) => entry.split(fixedMarker)[1].trim());
155156
}
156157

157158
public getBestLevel(): string | undefined {

0 commit comments

Comments
 (0)