Check JPath queries for '' instead of " #764
TysvdHeuvel
started this conversation in
New Rule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We tend to use JPath a lot. So, a line of code like this is very common:
But JPath expressions can become quite complex, so therefore you need to test them. And this is where the problem starts. Most of these easy to use online JPath builders/validators all use " (double quotes) to wrap strings. But BC somehow can't handle that. The expression then simply has no result. So you always have to remember not to copy/paste the expression, but also to replace all double quotes with 2 single quotes.
Having a rule that flags this, would have saved me a ton of hours.
Beta Was this translation helpful? Give feedback.
All reactions