Fix searching for index or component with `.`

"jquery.foo.js"
Sprockets 2.10.1
Merge branch '2.x'