Skip to content

Commit

Permalink
Add a XXX caveat to #346 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser committed Dec 17, 2012
1 parent 3d87095 commit f68a8a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mongo-livedata/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f68a8a3

Please sign in to comment.