Skip to content

Commit

Permalink
fix bug lineheight was not correctly applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent-Bouisset committed Nov 22, 2023
1 parent da7efb6 commit ccc842f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/texttracks/ttml/html/apply_line_height.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function applyLineHeight(
if (trimmedLineHeight === "auto") {
return;
}
const firstLineHeight = REGXP_LENGTH.exec(trimmedLineHeight[0]);
const firstLineHeight = REGXP_LENGTH.exec(trimmedLineHeight);
if (firstLineHeight === null) {
return;
}
Expand Down

0 comments on commit ccc842f

Please sign in to comment.