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

end-of-string anchor matches null character in regex

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.10
    • Querying
    • 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$/ } );

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: