Skip to content

Commit ea6e8fc

Browse files
author
garnermccloud
committed
Fix tab parsing of textgrid file
1 parent da087ee commit ea6e8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/textgrid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
fileName = "Unknown"; /* reset filename if there is are two empty lines */
6767
console.log("Reset filename if there is are two empty lines");
6868
}
69-
} else if (line.search(/ /) !== 0) {
69+
} else if (line.search(/ /) !== 0 && line.search(/\t/) !== 0) {
7070
pieces = line.split(" = ");
7171
if (pieces.length === 2) {
7272
key = pieces[0].trim().replace(/ /g, "_");

0 commit comments

Comments
 (0)