Skip to content

Commit

Permalink
fix: Split only on first equal sign occurance
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Nov 13, 2024
1 parent a94b685 commit e406a4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "bun",
"request": "attach",
"name": "Debug Stitcher",
"url": "ws://localhost:6499/sprs-stitcher",
"url": "ws://localhost:6500/sprs-stitcher",
}
]
}
2 changes: 1 addition & 1 deletion packages/stitcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.1.0",
"type": "module",
"scripts": {
"dev": "bun --watch --inspect=ws://localhost:6499/sprs-stitcher ./runtime/local.ts",
"dev": "bun --watch --inspect=ws://localhost:6500/sprs-stitcher ./runtime/local.ts",
"build": "bun build ./runtime/local.ts --target=bun --outdir=./dist",
"test": "bun test",
"lint": "tsc && eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/stitcher/src/parser/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function mapAttributes(
) {
const items = splitByCommaWithPreservingQuotes(param);
items.forEach((item) => {
const [key, value] = item.split("=");
const [key, value] = item.split(/=(.+)/);
if (key === undefined || value === undefined) {
return;
}
Expand Down

0 comments on commit e406a4a

Please sign in to comment.