Check BSON regex options without assumptions about std::string internals

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      _checkRegexOptions makes assertions in a way that assumes the internals of std::string work a certain way. This may not work for all compilers, possibly causing BF-34483 (a flaky test). This code could be more readable anyway so let's write it an a more clean and idiomatic way.

            Assignee:
            Matt Boros
            Reporter:
            Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: