Skip to content

Conversation

@harinarayan-sharma-spraxa
Copy link
Contributor

This update modifies the parsing logic in the named-placeholders module to ensure that quotes are only considered when not already inside a quoted string. This change addresses potential issues with parsing queries that contain quoted substrings, improving the overall reliability of the query parsing functionality.

This update modifies the parsing logic in the named-placeholders module to ensure that quotes are only considered when not already inside a quoted string. This change addresses potential issues with parsing queries that contain quoted substrings, improving the overall reliability of the query parsing functionality.
@durlabhjain durlabhjain requested a review from Copilot October 16, 2025 11:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the named-placeholders module's query parsing logic and sets up infrastructure to apply the patch automatically. The fix prevents incorrect parsing of quoted strings by ensuring the parser doesn't enter quote mode when already inside a quoted string.

Key Changes:

  • Fixed quote parsing logic to check if already in a quoted context before opening a new quote
  • Added patch-package infrastructure to automatically apply the fix during npm install

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
patches/named-placeholders+1.1.3.patch Contains the patch fixing the quote parsing logic in the named-placeholders module
package.json Adds patch-package dependencies and postinstall script to apply patches automatically

Copy link
Owner

@durlabhjain durlabhjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test and update yarn.lock to remove dependencies of postinstall-postinstall

@durlabhjain durlabhjain merged commit 48c6bf3 into durlabhjain:main Nov 4, 2025
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