@skrillex1224/playwright-toolkit 2.1.192 → 2.1.193

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.js CHANGED
@@ -4564,8 +4564,11 @@ var buildShareLink = (prefix, value) => {
4564
4564
  }
4565
4565
  const safePrefix = normalizePrefix(prefix);
4566
4566
  if (!safePrefix) return "";
4567
- const prefixNoSlash = safePrefix.endsWith("/") ? safePrefix.slice(0, -1) : safePrefix;
4568
4567
  const valueNoSlash = raw.replace(/^\/+/, "");
4568
+ if (/[?&=]$/.test(safePrefix)) {
4569
+ return `${safePrefix}${valueNoSlash}`;
4570
+ }
4571
+ const prefixNoSlash = safePrefix.replace(/\/+$/, "");
4569
4572
  return `${prefixNoSlash}/${valueNoSlash}`;
4570
4573
  };
4571
4574
  var parseJsonSafely = (text) => {