Skip to content

fix: keep string contents intact when parsing search queries - #86

Merged
ytkimirti merged 10 commits into
DX-3147-builder-syncfrom
DX-3147-query-strings
Nov 24, 2026
Merged

ytkimirti merged 10 commits into
DX-3147-builder-syncfrom
DX-3147-query-strings

Conversation

@ytkimirti

@ytkimirti ytkimirti commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

parseJSObjectLiteral quoted keys with a regex that also matched text inside strings, so { title: "Error, code: 42" } failed to parse and the search fell back to {}; it is now a small scanner that copies strings verbatim.
It also accepts what the editor accepts (single quotes, comments, trailing commas, trailing semicolons) while {,} or { a: 1 }; { b: 2 } stay invalid.
Part of DX-3147

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-redis-browser Ready Ready Preview Nov 17, 2026 4:07pm UTC

Request Review

@linear-code

linear-code Bot commented Oct 15, 2026

Copy link
Copy Markdown

DX-3147

@ytkimirti
ytkimirti marked this pull request as ready for review October 22, 2026 11:33
@ytkimirti
ytkimirti added this pull request to stack #118 October 28, 2026 07:55
@ytkimirti
ytkimirti merged commit 2c6cc91 into master Nov 24, 2026
5 checks passed
@ytkimirti
ytkimirti deleted the DX-3147-query-strings branch November 24, 2026 10:13

This branch was successfully deployed

1 active deployment
Preview — ceffe849 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants