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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 7.1.2, 7.0.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: