@syncfusion/ej2-calculate 35.1.41 → 35.1.42

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.
@@ -21287,7 +21287,7 @@ var Parser = /** @__PURE__ @class */ (function () {
21287
21287
  computeForceCalculate: false
21288
21288
  };
21289
21289
  };
21290
- Parser.prototype.formulaAutoCorrection = function (formula, args, isSubString) {
21290
+ Parser.prototype.formulaAutoCorrection = function (formula, args) {
21291
21291
  var arithemeticArr = ['*', '+', '-', '/', '^', '&'];
21292
21292
  var logicalSym = ['>', '=', '<'];
21293
21293
  var i = 0;
@@ -21400,7 +21400,7 @@ var Parser = /** @__PURE__ @class */ (function () {
21400
21400
  if (formula[i] === '/' || formula[i] === '*' || formula[i] === '^') {
21401
21401
  form = form + formula[i];
21402
21402
  }
21403
- if (formula[i] === '&' && (isSubString || formula.substring(i + 1).trim()[0] !== 'q')) {
21403
+ if (formula[i] === '&') {
21404
21404
  form = form + formula[i];
21405
21405
  }
21406
21406
  i = i + 1;
@@ -22114,7 +22114,7 @@ var Parser = /** @__PURE__ @class */ (function () {
22114
22114
  try {
22115
22115
  var args = void 0;
22116
22116
  substr = substr.split('(').join('').split(')').join('');
22117
- substr = '(' + this_1.formulaAutoCorrection(substr, args, true) + ')';
22117
+ substr = '(' + this_1.formulaAutoCorrection(substr, args) + ')';
22118
22118
  }
22119
22119
  catch (ex) {
22120
22120
  var args = {
@@ -24939,7 +24939,8 @@ var Calculate = /** @__PURE__ @class */ (function (_super) {
24939
24939
  }
24940
24940
  }
24941
24941
  while (i < pFormula.length && (this.isDigit(pFormula[i]) ||
24942
- (pFormula[i] === decimalSep || pFormula[i] === '.'))) {
24942
+ (pFormula[i] === decimalSep || pFormula[i] === '.') ||
24943
+ pFormula[i] === '\n')) {
24943
24944
  s += pFormula[i] === decimalSep ? '.' : pFormula[i];
24944
24945
  i = i + 1;
24945
24946
  }