Support namespaces for repository

You can simplify this regex removing the namespace group.