@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.
@@ -528,10 +528,8 @@ var paymentMethodOptions = mapArrayToOptions(
528
528
  Object.values(EnumPaymentMethod)
529
529
  );
530
530
  function normalizeUrl(url) {
531
- if (!url.startsWith("http://") && !url.startsWith("https://")) {
532
- return `https://${url}`;
533
- }
534
- return url;
531
+ const withProtocol = !url.startsWith("http://") && !url.startsWith("https://") ? `https://${url}` : url;
532
+ return withProtocol.replace(/\/+$/, "");
535
533
  }
536
534
  var licenseNiceNames = {
537
535
  ["pro_event" /* PRO_EVENT */]: "Pro Event",