jcampconverter
Advanced tools
Comparing version 2.11.0 to 3.0.0
{ | ||
"name": "jcampconverter", | ||
"version": "2.11.0", | ||
"version": "3.0.0", | ||
"description": "Parse and convert JCAMP data", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -308,3 +308,10 @@ 'use strict'; | ||
if (dataLabel.match(options.keepRecordsRegExp)) { | ||
result.info[dataLabel] = dataValue.trim(); | ||
if (result.info[dataLabel]) { | ||
if (!Array.isArray(result.info[dataLabel])) { | ||
result.info[dataLabel] = [result.info[dataLabel]]; | ||
} | ||
result.info[dataLabel].push(dataValue.trim()); | ||
} else { | ||
result.info[dataLabel] = dataValue.trim(); | ||
} | ||
} | ||
@@ -311,0 +318,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
43445
976