@wix/blog 1.0.717 → 1.0.719

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.
@@ -1108,12 +1108,14 @@ var ar = (e6, t2) => {
1108
1108
  if (!n2 || !t2?.endsWith(r2)) return;
1109
1109
  let i2, a2;
1110
1110
  try {
1111
- i2 = new URL(n2).pathname, a2 = new URL(t2).pathname;
1111
+ i2 = new URL(n2), a2 = new URL(t2);
1112
1112
  } catch {
1113
1113
  return;
1114
1114
  }
1115
- let o2 = a2.slice(0, -r2.length);
1116
- return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
1115
+ let { pathname: o2 } = i2, s2 = a2.pathname, c2 = s2.slice(0, -r2.length), l2 = c2.slice(0, c2.lastIndexOf(`/`));
1116
+ if (!c2 || o2.startsWith(`${s2}/`)) return;
1117
+ let u2 = o2.startsWith(`${c2}/`), d2 = o2.split(`/`), { slug: f2 } = e6, p2 = f2 ? d2.includes(f2) || d2.includes(encodeURIComponent(f2)) : false, m2 = i2.origin === a2.origin && o2.startsWith(`${l2}/`) && p2;
1118
+ return u2 || m2 ? n2 : void 0;
1117
1119
  };
1118
1120
  var or = (e6, t2) => {
1119
1121
  let n2 = ar(e6, t2);