octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

Can get Devices use regex? #145

Closed NisaryXie closed 7 years ago

NisaryXie commented 7 years ago

Can get Devices use regex?

royvandewater commented 7 years ago

It cannot, but I believe it may be possible using the Search API if we whitelist the $regex operator here: https://github.com/octoblu/meshblu-core-manager-device/blob/master/src/device-manager.coffee#L11

I'm not sure why it's not whitelisted already, so I want to check with @iamruinous before adding it in case it opens up a way to bypass someone's discover whitelist.