condcal-cjs 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -142,7 +142,7 @@ var getValueInCondition = (formula, params) => {
|
|
|
142
142
|
nFormula = nFormula.substring(0, match.startIndex) + nFormula.substring(match.startIndex + match.text.length);
|
|
143
143
|
nFormula = nFormula.substring(0, match.startIndex) + value + nFormula.substring(match.startIndex);
|
|
144
144
|
}
|
|
145
|
-
return
|
|
145
|
+
return getValueInParenthesis(nFormula);
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
var getValueInParenthesis = (formula) => {
|
|
@@ -163,7 +163,7 @@ var getValueInParenthesis = (formula) => {
|
|
|
163
163
|
for (let i = matches.length - 1; i >= 0; i--) {
|
|
164
164
|
let match = matches[i];
|
|
165
165
|
|
|
166
|
-
let value =
|
|
166
|
+
let value = getValueInParenthesis(match.value);
|
|
167
167
|
|
|
168
168
|
nFormula = nFormula.substring(0, match.startIndex) + nFormula.substring(match.startIndex + match.text.length);
|
|
169
169
|
nFormula = nFormula.substring(0, match.startIndex) + value + nFormula.substring(match.startIndex);
|