fix potential bug

For example, /3.0/ could match Rails version 4.3.0 in the future