Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rossng committed Dec 23, 2020
1 parent 4ef4122 commit 754007f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/stt-adapters/srt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ interface Word {
}

export default function srtToDraft({data: srtText}: {data: string}): Array<DraftJsContentBlockParagraph> {
if (!srtText || srtText.length === 0) {
return [];
}
const nodes = parseSync(srtText);
return nodes.map(node => {
if (node.type !== "cue") {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default [
terser()
]
},
external: ["react", "react-dom"],
external: ["react", "react-dom", "react-is"],
plugins: [
postcss({
modules: true
Expand Down

0 comments on commit 754007f

Please sign in to comment.