@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.
@@ -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) {