joewalnes / filtrex

A simple, safe, JavaScript Filter Expression compiler for end-users
MIT License
1.05k stars 74 forks source link

Support object and array subscripting #7

Closed pelotom closed 10 years ago

pelotom commented 10 years ago

Added support for expressions involving object and array subscripting, e.g. foo.bar and arr[12].

pelotom commented 10 years ago

Hmm, I see this change made the grammar ambiguous, but I don't really have time to sort it out. I'm going to go with the vanilla new Function(...) approach for now.