Skip to content

Commit

Permalink
ignore empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikPeters committed Jan 13, 2024
1 parent 4c0d2eb commit 5fd4a44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ChapterListEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export function updateChapterListBasedOnTextarea() {
const encounteredTimes = new Set();

lines.forEach((line, index) => {
if (line.trim() === '') {
return;
}

const chapter = { title: '', start: 0, error: '' };

// Regex to handle optional parentheses and split time and title
Expand Down

0 comments on commit 5fd4a44

Please sign in to comment.