mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add a XXX caveat to #346 fix.
This commit is contained in:
@@ -179,6 +179,8 @@ Meteor.Collection._rewriteSelector = function (selector) {
|
||||
var ret = {};
|
||||
_.each(selector, function (value, key) {
|
||||
if (value instanceof RegExp) {
|
||||
// XXX should also do this translation at lower levels (eg if the outer
|
||||
// level is $and/$or/$nor, or if there's an $elemMatch)
|
||||
ret[key] = {$regex: value.source};
|
||||
var regexOptions = '';
|
||||
// JS RegExp objects support 'i', 'm', and 'g'. Mongo regex $options
|
||||
|
||||
Reference in New Issue
Block a user