mongodb/mongo — pull request #386 by saml (2013-02-25 22:12:44+00:00)
Title: SERVER-8723

instead of RegExp, using lastIndexOf to calculate if string ends with
str.