Fix searching for index or component with `.`

"jquery.foo.js"