@redneckz/wildless-cms-uni-blocks 0.14.367 → 0.14.368

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.
@@ -297,7 +297,10 @@
297
297
  const isHash = (href) => Boolean(href?.startsWith('#'));
298
298
  const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
299
299
  const joinPath = (...path) => path.filter(Boolean).join('/').replace(/\/+/g, '/');
300
- const hasPrefix = (href, prefix) => prefix && href && href.startsWith(prefix);
300
+ const hasPrefix = (href, prefix) => Boolean(prefix &&
301
+ href &&
302
+ href.startsWith(prefix) &&
303
+ [prefix === '/', href === prefix, href[prefix.length] === '/'].some(Boolean));
301
304
 
302
305
  var url = /*#__PURE__*/Object.freeze({
303
306
  __proto__: null,
@@ -6314,7 +6317,7 @@
6314
6317
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6315
6318
  });
6316
6319
 
6317
- const packageVersion = "0.14.366";
6320
+ const packageVersion = "0.14.367";
6318
6321
 
6319
6322
  exports.Blocks = Blocks;
6320
6323
  exports.ContentPage = ContentPage;