goofballLogic / ld-query

Querying JSON-LD
MIT License
20 stars 6 forks source link

Change how the selection path is built #19

Closed gareth-robinson closed 7 years ago

gareth-robinson commented 7 years ago

I've adjusted the regexes in the extractStep function, so it will now spot a space in front of a [attr=value] block and handle that as a separate step, rather than joining it to the previous.

I also noticed that when walking through the steps, the assessPath method was starting a test on the current node, not on the nodes beneath.

This is a fix for issue https://github.com/goofballLogic/ld-query/issues/17

goofballLogic commented 7 years ago

@gareth-robinson npm version now updated to 0.2.2 including this fix