jcampconverter
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,12 @@ | ||
## [6.0.1](https://github.com/cheminfo-js/jcampconverter/compare/v6.0.0...v6.0.1) (2020-06-10) | ||
### Bug Fixes | ||
* improve 2d spectra discovery ([5a7c15a](https://github.com/cheminfo-js/jcampconverter/commit/5a7c15afbadb133d3ecb89d5e816354c0d207441)) | ||
* improve detection of 2d spectra ([02e966f](https://github.com/cheminfo-js/jcampconverter/commit/02e966f108578578fe717d259b16a7c933a0db44)) | ||
* ntuples separator must contain a comma ([3bbf182](https://github.com/cheminfo-js/jcampconverter/commit/3bbf1829acffeeed4a888fd502afdd6637d070b8)) | ||
# [6.0.0](https://github.com/cheminfo-js/jcampconverter/compare/v5.0.2...v6.0.0) (2020-06-10) | ||
@@ -2,0 +13,0 @@ |
@@ -772,3 +772,3 @@ 'use strict'; | ||
// the following RegExp can only be used for XYdata, some peakTables have values with a "E-5" ... | ||
const ntuplesSeparator = /[, \t]+/; | ||
const ntuplesSeparator = /[ \t]*,[ \t]*/; | ||
@@ -924,7 +924,7 @@ class Spectrum {} | ||
currentEntry.dataType = dataValue; | ||
if (dataValue.indexOf('nD') > -1) { | ||
if (dataValue.toLowerCase().indexOf('nd') > -1) { | ||
currentEntry.twoD = true; | ||
} | ||
} else if (canonicDataLabel === 'NTUPLES') { | ||
if (dataValue.indexOf('nD') > -1) { | ||
if (dataValue.toLowerCase().indexOf('nd') > -1) { | ||
currentEntry.twoD = true; | ||
@@ -931,0 +931,0 @@ } |
{ | ||
"name": "jcampconverter", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Parse and convert JCAMP data", | ||
@@ -61,2 +61,3 @@ "main": "lib/index.js", | ||
"jest": "^25.2.6", | ||
"jest-matcher-deep-close-to": "^2.0.1", | ||
"prettier": "^2.0.2", | ||
@@ -63,0 +64,0 @@ "rollup": "^2.3.2" |
@@ -12,3 +12,3 @@ import { isMSField, convertMSFieldToLabel } from './complexChromatogram'; | ||
// the following RegExp can only be used for XYdata, some peakTables have values with a "E-5" ... | ||
const ntuplesSeparator = /[, \t]+/; | ||
const ntuplesSeparator = /[ \t]*,[ \t]*/; | ||
@@ -164,7 +164,7 @@ class Spectrum {} | ||
currentEntry.dataType = dataValue; | ||
if (dataValue.indexOf('nD') > -1) { | ||
if (dataValue.toLowerCase().indexOf('nd') > -1) { | ||
currentEntry.twoD = true; | ||
} | ||
} else if (canonicDataLabel === 'NTUPLES') { | ||
if (dataValue.indexOf('nD') > -1) { | ||
if (dataValue.toLowerCase().indexOf('nd') > -1) { | ||
currentEntry.twoD = true; | ||
@@ -171,0 +171,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82407
15