Fix in Rails 4

Correct regex