@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.
@@ -1,5 +1,5 @@
1
1
  import { DateTime } from "luxon";
2
- import { ProgrammeTransfer } from '../Entities/programmeTransfer';
2
+ import { ProgrammeTransfer } from "../Entities/programmeTransfer";
3
3
  export declare enum ProgrammeStage {
4
4
  AwaitingAuthorization = "Pending",
5
5
  Authorised = "Authorised",
package/dist/esm/index.js CHANGED
@@ -319,6 +319,9 @@ var addSpaces = function (text) {
319
319
  if (!text) {
320
320
  return text;
321
321
  }
322
+ if (text === text.toUpperCase()) {
323
+ return text;
324
+ }
322
325
  return text.replace(/([A-Z])/g, " $1").trim();
323
326
  };
324
327
  var getFinancialFields = function (programme) {