@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.
@@ -18906,7 +18906,7 @@ class Parser {
18906
18906
  computeForceCalculate: false
18907
18907
  };
18908
18908
  }
18909
- formulaAutoCorrection(formula, args, isSubString) {
18909
+ formulaAutoCorrection(formula, args) {
18910
18910
  const arithemeticArr = ['*', '+', '-', '/', '^', '&'];
18911
18911
  const logicalSym = ['>', '=', '<'];
18912
18912
  let i = 0;
@@ -19019,7 +19019,7 @@ class Parser {
19019
19019
  if (formula[i] === '/' || formula[i] === '*' || formula[i] === '^') {
19020
19020
  form = form + formula[i];
19021
19021
  }
19022
- if (formula[i] === '&' && (isSubString || formula.substring(i + 1).trim()[0] !== 'q')) {
19022
+ if (formula[i] === '&') {
19023
19023
  form = form + formula[i];
19024
19024
  }
19025
19025
  i = i + 1;
@@ -19732,7 +19732,7 @@ class Parser {
19732
19732
  try {
19733
19733
  let args;
19734
19734
  substr = substr.split('(').join('').split(')').join('');
19735
- substr = '(' + this.formulaAutoCorrection(substr, args, true) + ')';
19735
+ substr = '(' + this.formulaAutoCorrection(substr, args) + ')';
19736
19736
  }
19737
19737
  catch (ex) {
19738
19738
  const args = {
@@ -22519,7 +22519,8 @@ let Calculate = class Calculate extends Base {
22519
22519
  }
22520
22520
  }
22521
22521
  while (i < pFormula.length && (this.isDigit(pFormula[i]) ||
22522
- (pFormula[i] === decimalSep || pFormula[i] === '.'))) {
22522
+ (pFormula[i] === decimalSep || pFormula[i] === '.') ||
22523
+ pFormula[i] === '\n')) {
22523
22524
  s += pFormula[i] === decimalSep ? '.' : pFormula[i];
22524
22525
  i = i + 1;
22525
22526
  }