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

Some regular expressions are missing beginning/end anchors or are using them incorrectly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0.rc0, 7.0.5
    • Affects Version/s: None
    • Component/s: None

      There are some regular expressions in Mongoid which are missing the \A / \z beginning/end anchors, and as a result will match input that contains the correct input as a substring, not just the correct input.

      Some other regular expressions use ^ and $ when they should be using \A and \z.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: