Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4936

Correctly handle $options when $regex is a regular expression

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Query

    Description

      When $regex is given a regular expression, and $options are given, we run into an issue because our BSON regular expressions always have the m flag set and the server does not allow flags to be given in both the regexp argument to $regex and $options.

      As part of this ticket we may need to redesign how bson regular expressions handle their option arguments, which could go into bson 5 or 6.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oleg.pudeyev@mongodb.com Oleg Pudeyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: