Better path match (discovered during pair debugging: `/^[/]([^/]+)[/](?!.*\/-\/)(.+?)(?:[.]git|[/])?$/`)