@wavemaker/app-ng-runtime 11.6.0-next.26277 → 11.6.0-next.26282

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.
@@ -475,7 +475,7 @@ const removeTrailingZeros = value => {
475
475
  // Convert value to a string if it's a number
476
476
  const stringValue = typeof value === 'number' ? value.toString() : value;
477
477
  // Remove trailing zeros
478
- return stringValue.replace(/\.0+$/, "").replace(/\.0+%$/, "%");
478
+ return stringValue.replace(/\.0+([A-Za-z]*)$/, '$1').replace(/\.([1-9]+)0+([A-Za-z]*)$/, '.$1$2');
479
479
  };
480
480
  // Formats the given value according to number format
481
481
  const getNumberFormatedData = (numberFormat, d) => {