crcn/sift.js — pull request #43 by Redsandro (2014-11-06 13:18:18+00:00)
Title: Convert string to regex when explicitly required

When data is sent in `JSON`, strings must be used for regex.
This convert these to `regex`es automatically when a `regex` is explicitly required (i.e. using `$regex`), in stead of writing an external wrapper that loops the JSON looking for regexes.