esquery icon indicating copy to clipboard operation
esquery copied to clipboard

Attribute value doesn't support empty array ([])

Open Yash-Singh1 opened this issue 4 years ago • 1 comments

I can't do something like [attr=[]] and expect attr to be equal to an empty array. Instead, esquery throws a syntax error:

Expected " ", "'", ".", "/", "\"", "type(", [0-9] or [^ [\],():#!=><~+.] but "[" found.

Yash-Singh1 avatar Aug 12 '21 03:08 Yash-Singh1

What about [attr.length=0]. Does it work for you?

miluoshi avatar Aug 17 '23 15:08 miluoshi