Skip to content

Conversation

@ipost
Copy link

@ipost ipost commented Mar 31, 2023

I noticed this when splitting long paths over multiple lines with a heredoc:

path = <<~PATH
  $.requestResponse.responseInfo.allClientInfo.abcdeSummary.
    stats[?(@.type == total)].value
PATH

I'm fine with having a local wrapper in my app to remove those characters, but the library should probably raise an error instead of hang.

@joshbuddy
Copy link
Owner

Thanks @ipost! This makes sense to me.

@joshbuddy joshbuddy closed this May 9, 2023
mohanapriya2308 pushed a commit to mohanapriya2308/jsonpath that referenced this pull request May 15, 2023
fix: Parser hangs on mid-string line feed character
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