You should be able to pull this project down, install dependancies, run source setup.sh, and start the server to see the issue (It's all in the README).
Specifically these are the lines where we can see how the javascript regex does not work where the PCRE regex does work.
Description/Steps to reproduce
If you try and run a
like
ornlike
query using javascript regular expression syntax you get a blank$regex
operator.Link to reproduction sandbox
Loopback-Sandbox repo
source setup.sh
, and start the server to see the issue (It's all in theREADME
).Expected result
Actual Result
Additional information
This error was opened as an issue here strongloop/loopback-connector-cloudant#189 but appears to originate from this project.
It seems that both CouchDB and Cloudant require PCRE style regular expressions but the loopback documentation implies that you can use the javascript
RegExp
.