False positive on Rails 4.0.3 when checking for Rails 3

The regex wasn't anchored on the major version number. I looked for other such instances and all the others were anchored.