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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0.rc0, 7.0.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: