Modify repository name regex to match index

Fixes #1895