Skip to content

Fix extended parser fields starting with true or false#231

Open
koriyoshi2041 wants to merge 1 commit into
h2non:masterfrom
koriyoshi2041:fix/ext-bool-prefix-field-names
Open

Fix extended parser fields starting with true or false#231
koriyoshi2041 wants to merge 1 commit into
h2non:masterfrom
koriyoshi2041:fix/ext-bool-prefix-field-names

Conversation

@koriyoshi2041

Copy link
Copy Markdown

Fixes #177.\n\nThe extended lexer was tokenizing any identifier beginning with true or false as a BOOL prefix, so paths like trueName and false_positives failed before the normal field parser could see them.\n\nThis keeps true / false as boolean literals only when they are not followed by an identifier character, and adds regression coverage for both prefixes.\n\nTests:\n- uv run --with pytest --with hypothesis --with pytest-randomly pytest -q

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.

JsonPathParserError when property name starts with "true" or "false

1 participant