@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.
package/dist/index.mjs CHANGED
@@ -1019,10 +1019,8 @@ var paymentMethodOptions = mapArrayToOptions(
1019
1019
  Object.values(EnumPaymentMethod)
1020
1020
  );
1021
1021
  function normalizeUrl(url) {
1022
- if (!url.startsWith("http://") && !url.startsWith("https://")) {
1023
- return `https://${url}`;
1024
- }
1025
- return url;
1022
+ const withProtocol = !url.startsWith("http://") && !url.startsWith("https://") ? `https://${url}` : url;
1023
+ return withProtocol.replace(/\/+$/, "");
1026
1024
  }
1027
1025
  var licenseNiceNames = {
1028
1026
  ["pro_event" /* PRO_EVENT */]: "Pro Event",