@timardex/cluemart-shared 1.5.796 → 1.5.797

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.
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  availableCategories,
47
47
  categoryColors
48
- } from "../chunk-LHT6WAM2.mjs";
48
+ } from "../chunk-JCFZV25I.mjs";
49
49
  import "../chunk-6UP53CPG.mjs";
50
50
  import "../chunk-E7ZEBZ3O.mjs";
51
51
  import "../chunk-LETM2YHF.mjs";
@@ -536,10 +536,8 @@ var paymentMethodOptions = mapArrayToOptions(
536
536
  Object.values(EnumPaymentMethod)
537
537
  );
538
538
  function normalizeUrl(url) {
539
- if (!url.startsWith("http://") && !url.startsWith("https://")) {
540
- return `https://${url}`;
541
- }
542
- return url;
539
+ const withProtocol = !url.startsWith("http://") && !url.startsWith("https://") ? `https://${url}` : url;
540
+ return withProtocol.replace(/\/+$/, "");
543
541
  }
544
542
  var licenseNiceNames = {
545
543
  ["pro_event" /* PRO_EVENT */]: "Pro Event",
@@ -1642,8 +1640,6 @@ var availableCategories = assignColorToCategories([
1642
1640
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
1643
1641
  var nzbnRegex = /^94\d{11}$/;
1644
1642
  var normalizedUrlTransform = () => yup.string().trim().transform(
1645
- (value) => typeof value === "string" ? value.toLowerCase() : value
1646
- ).transform(
1647
1643
  (value) => typeof value === "string" ? normalizeUrl(value) : value
1648
1644
  );
1649
1645
  var noLeadingZeros = (fieldName, options = {}) => {