We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29aec6 commit ef6e4cdCopy full SHA for ef6e4cd
src/files/dwi.ts
@@ -10,7 +10,7 @@ export function parseBvalBvec(contents: string): string[][] {
10
// BVAL files are a single row of numbers, and may contain
11
// trailing whitespace
12
return normalizeEOL(contents)
13
- .split(/\s*\n/) // Split on newlines, ignoring trailing whitespace
+ .split(/\n/) // Split on newlines
14
.filter((x) => x.match(/\S/)) // Remove empty lines
15
- .map((row) => row.split(/\s+/))
+ .map((row) => row.trimEnd().split(/\s+/)) // Split on whitespace, ignoring trailing
16
}
0 commit comments