persvr / rql

Resource Query Language
http://www.persvr.org/
267 stars 49 forks source link

update Query to support match #40

Closed neonstalwart closed 10 years ago

neonstalwart commented 10 years ago

this adds support for Query().match( ... )

wshager commented 10 years ago

I would like to propose to call it 'matches' instead. It's less javascript-like but xpath naming and more clear imo.

neonstalwart commented 10 years ago

it already exists as the match operator in js-array. I'm just trying to bring query up to par with that. I'm hoping that by making the smallest change possible I might have a chance of a merge :)

I figured match was intentionally chosen over matches since matches has slightly different semantics with RegExp - this is really more like test.

neonstalwart commented 10 years ago

included in #44