rse / astq

Abstract Syntax Tree (AST) Query Engine
https://npmjs.com/astq
202 stars 15 forks source link

last() and nth(-1) functions not working #14

Open snortblt opened 4 years ago

snortblt commented 4 years ago

I have two adapters, one I've created for HTML and one from astq-ts. Both appear to work great except the last() or nth(-1), nth(-2), etc. functions. first() and nth(1), etc. functions do work.