dolphindb 2.0.1026 → 2.0.1027

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/browser.js CHANGED
@@ -1522,8 +1522,7 @@ export function formati(obj, index, options = {}) {
1522
1522
  const { scale } = obj.value;
1523
1523
  const s = String(x < 0 ? -x : x).padStart(scale, '0');
1524
1524
  const str = (x < 0 ? '-' : '') + (scale ? `${s.slice(0, -scale) || '0'}.${s.slice(-scale)}` : s);
1525
- if (options.colors)
1526
- items[i] = green(str);
1525
+ items[i] = options.colors ? green(str) : str;
1527
1526
  }
1528
1527
  break;
1529
1528
  case DdbType.complex: