Skip to content

Commit

Permalink
fix: remove jcampData.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed May 7, 2021
1 parent 75ba811 commit 9a7cf48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Expand Up @@ -53,8 +53,7 @@ export function fromJcamp(jcampData, options = {}) {
...options,
};

const jcampString = jcampData.toString();
const parsedJcamp = convert(jcampString, {
const parsedJcamp = convert(jcampData, {
keepRecordsRegExp: /.*/,
canonicMetadataLabels: true,
withoutXY: false,
Expand Down

0 comments on commit 9a7cf48

Please sign in to comment.