mf-utilities
Advanced tools
Comparing version 3.2.5 to 3.2.6
@@ -18,2 +18,3 @@ "use strict"; | ||
// the idea is that has long as we don't have a range we don't really care | ||
// but the range should only applied on the previous atom, group or parenthesis | ||
// there is a limitation is that the range has to be first level of parenthesis | ||
@@ -59,2 +60,6 @@ let parenthesisLevel = 0; | ||
case mf_parser_1.Kind.OPENING_PARENTHESIS: | ||
if (parenthesisLevel === 0 && currentMF) { | ||
current.mf += currentMF; | ||
currentMF = ''; | ||
} | ||
parenthesisLevel++; | ||
@@ -61,0 +66,0 @@ currentMF += '('; |
{ | ||
"name": "mf-utilities", | ||
"version": "3.2.5", | ||
"version": "3.2.6", | ||
"description": "Small utilities dealing with molecular formula", | ||
@@ -27,3 +27,3 @@ "main": "lib/src/index.js", | ||
}, | ||
"gitHead": "2b83132c523cebb4b3c395a70cfd5de04fbf7f28" | ||
"gitHead": "ead08ac8b436c6d4eb0016e938cb17a0dc5e2b06" | ||
} |
@@ -17,2 +17,3 @@ import { Kind, MF, parse } from 'mf-parser'; | ||
// the idea is that has long as we don't have a range we don't really care | ||
// but the range should only applied on the previous atom, group or parenthesis | ||
// there is a limitation is that the range has to be first level of parenthesis | ||
@@ -57,2 +58,6 @@ let parenthesisLevel = 0; | ||
case Kind.OPENING_PARENTHESIS: | ||
if (parenthesisLevel === 0 && currentMF) { | ||
current.mf += currentMF; | ||
currentMF = ''; | ||
} | ||
parenthesisLevel++; | ||
@@ -59,0 +64,0 @@ currentMF += '('; |
Sorry, the diff of this file is not supported yet
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
72868
880