-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
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.
- related to
-
MONGOID-4743 String#numeric? incorrectly uses ^ and $ anchors and groups
- Closed
- links to