Skip to content

$..[(')]')] Trips Up the Parser #143

Description

@movitto

See Pull Request #142 for a potential (less than optimal) fix.

The grammer as it is defined will encounter the ')]' in the single-quotes and use this as the end of the filter expression. When it encounters the second single-quote jison will throw a lexical error yielding 'unrecognized text'.

Pull request #142 enables greedy matching which will match the expression to the end resolving this issue but introducing another in the case of mulitple filter expressions, eg

$..[?('expr1')][?('expr2')]

Opening this up to start the discussion and see if any others can determine a solution that works in both cases

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions