@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.cjs +4 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4592,8 +4592,11 @@ var buildShareLink = (prefix, value) => {
|
|
|
4592
4592
|
}
|
|
4593
4593
|
const safePrefix = normalizePrefix(prefix);
|
|
4594
4594
|
if (!safePrefix) return "";
|
|
4595
|
-
const prefixNoSlash = safePrefix.endsWith("/") ? safePrefix.slice(0, -1) : safePrefix;
|
|
4596
4595
|
const valueNoSlash = raw.replace(/^\/+/, "");
|
|
4596
|
+
if (/[?&=]$/.test(safePrefix)) {
|
|
4597
|
+
return `${safePrefix}${valueNoSlash}`;
|
|
4598
|
+
}
|
|
4599
|
+
const prefixNoSlash = safePrefix.replace(/\/+$/, "");
|
|
4597
4600
|
return `${prefixNoSlash}/${valueNoSlash}`;
|
|
4598
4601
|
};
|
|
4599
4602
|
var parseJsonSafely = (text) => {
|