Skip to content

Commit e406a4a

Browse files
committed
fix: Split only on first equal sign occurance
1 parent a94b685 commit e406a4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "bun",
1212
"request": "attach",
1313
"name": "Debug Stitcher",
14-
"url": "ws://localhost:6499/sprs-stitcher",
14+
"url": "ws://localhost:6500/sprs-stitcher",
1515
}
1616
]
1717
}

packages/stitcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.1.0",
44
"type": "module",
55
"scripts": {
6-
"dev": "bun --watch --inspect=ws://localhost:6499/sprs-stitcher ./runtime/local.ts",
6+
"dev": "bun --watch --inspect=ws://localhost:6500/sprs-stitcher ./runtime/local.ts",
77
"build": "bun build ./runtime/local.ts --target=bun --outdir=./dist",
88
"test": "bun test",
99
"lint": "tsc && eslint",

packages/stitcher/src/parser/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function mapAttributes(
44
) {
55
const items = splitByCommaWithPreservingQuotes(param);
66
items.forEach((item) => {
7-
const [key, value] = item.split("=");
7+
const [key, value] = item.split(/=(.+)/);
88
if (key === undefined || value === undefined) {
99
return;
1010
}

0 commit comments

Comments
 (0)