Skip to content

Commit

Permalink
trim VCF lines before tokenizing - fixes #1922
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Dec 14, 2024
1 parent 5a0d7ad commit 03a14f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/variant/vcfParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class VcfParser {
while ((line = await dataWrapper.nextLine()) !== undefined) {
if (line && !line.startsWith("#")) {

const tokens = line.split("\t")
const tokens = line.trim().split("\t")
if (tokens.length === nExpectedColumns) {
const variant = new Variant(tokens)
variant.header = this.header // Keep a pointer to the header to interpret fields for popup text
Expand Down

0 comments on commit 03a14f5

Please sign in to comment.