Skip to content

Commit

Permalink
Fix tab parsing of textgrid file
Browse files Browse the repository at this point in the history
  • Loading branch information
garnermccloud committed Jan 12, 2016
1 parent da087ee commit ea6e8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/textgrid.js
Expand Up @@ -66,7 +66,7 @@
fileName = "Unknown"; /* reset filename if there is are two empty lines */
console.log("Reset filename if there is are two empty lines");
}
} else if (line.search(/ /) !== 0) {
} else if (line.search(/ /) !== 0 && line.search(/\t/) !== 0) {
pieces = line.split(" = ");
if (pieces.length === 2) {
key = pieces[0].trim().replace(/ /g, "_");
Expand Down

0 comments on commit ea6e8fc

Please sign in to comment.