@undp/carbon-library 1.0.24 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
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) {