Fix in rails to angular mapping regexp