-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- links to