mongoid/mongoid-site — pull request #110 by dznz (2012-02-01 00:02:39+00:00)
Title: Replace regex validation example with secure variation.

The previous example given, `/[A-Za-z]/`, isn't very useful or secure
given that it passes any string containing an alphabetic character,
enabling potential XSS and db injection exploits.

The replacement, `/^[A-Za-z]*$/`, ensures that all the characters in the
string are alphabetical.

I understand that the purpose of the documentation is to explain Mongoid
not regexes, but I suggest the change be made for the sake of not
having a insecure example online.