@undp/carbon-library 1.0.24 → 1.0.25

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/dist/cjs/index.js CHANGED
@@ -339,6 +339,9 @@ var addSpaces = function (text) {
339
339
  if (!text) {
340
340
  return text;
341
341
  }
342
+ if (text === text.toUpperCase()) {
343
+ return text;
344
+ }
342
345
  return text.replace(/([A-Z])/g, " $1").trim();
343
346
  };
344
347
  var getFinancialFields = function (programme) {