Skip to content

Commit

Permalink
fix: trim parsed input group keys to remove whitespace (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
eban5 authored and misteroneill committed Aug 16, 2022
1 parent a6e9c97 commit 64cae8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function parseOptions(input, callback, keyValueDelim, groupDelim) {
if (kv.length !== 2) {
continue;
}
var k = kv[0];
var v = kv[1];
var k = kv[0].trim();
var v = kv[1].trim();
callback(k, v);
}
}
Expand Down

0 comments on commit 64cae8e

Please sign in to comment.