Simplify repository name component regexp