@dra2020/baseclient 1.0.139 → 1.0.141

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.
@@ -1253,9 +1253,8 @@ function formatNumber(n, format) {
1253
1253
  let parts = format.split('.');
1254
1254
  let fmt = parts[0];
1255
1255
  let precision = Number(parts[1] || '0');
1256
- n = Util.precisionRound(n, precision);
1257
1256
  // Only have implementation for 'locale'
1258
- return n.toLocaleString();
1257
+ return n.toLocaleString(undefined, { maximumFractionDigits: precision, minimumFractionDigits: precision });
1259
1258
  }
1260
1259
  const DefaultDetailOptions = { numberFormat: 'locale.0' };
1261
1260
  class Evaluator {
@@ -1307,7 +1306,7 @@ class Evaluator {
1307
1306
  }
1308
1307
  }
1309
1308
  }
1310
- const reInvalidChars = /[\.\[\]\\]/;
1309
+ const reInvalidChars = /[\[\]\\]/;
1311
1310
  const reExpr = /^=(.*)$/;
1312
1311
  class FormatDetail {
1313
1312
  constructor(pattern, options) {