Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25030

end-of-string anchor matches null character in regex

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.10
    • Component/s: Querying
    • Labels:
      None
    • ALL
    • Hide

      db.test.insert(

      { _id : 'test\0' }

      );
      db.test.find(

      { _id: /^test$/ }

      );

      Show
      db.test.insert( { _id : 'test\0' } ); db.test.find( { _id: /^test$/ } );

      The end-of-string anchor ($) matches a null character where it shouldn't.

            Assignee:
            Unassigned Unassigned
            Reporter:
            martijntje Martijn Otto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: