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

Audit tree for incorrect use of ^ and $ anchors, replace with \A \z as needed

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.1.2, 7.0.8
    • Affects Version/s: None
    • Component/s: None

      In Ruby regular expressions, \A and \z should be used to refer to the beginning and end of the input string. ^ and $ mean beginning/end of line. This is a common pitfall of the language.

      This ticket is for auditing the entire Mongoid source tree to ensure we use the correct anchors in regular expressions.

            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: