NoamB/sorcery — pull request #468 by weimeng (2013-10-15 17:41:58+00:00)
Title: Fix #433 credential_regex not escaping special characters for Mongoid & MongoMapper

Properly escape regex strings when doing `find_by_credentials` in Mongoid and MongoMapper. Fixes #433.

Not sure where to add tests for this but I don't think it's necessary as it's a relatively simple fix.