RegExp interpreted wrong when creating agg from text or when modifying a view

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • No version
    • Affects Version/s: 1.20.1
    • Component/s: Aggregation pipeline
    • None
    • Not Needed
    • None

      When I have an aggregation that contains RegExp('source', 'opts'), that is actually imported into the builder as RegExp('source', opts) (missing quotes around opts.

      Same happens when modifying a read-only view that contains a RegExp object.

            Assignee:
            Unassigned
            Reporter:
            Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: