Better Github detection

Author: Lazerbeak12345Created Dec 11, 2022Updated Mar 7, 2023

Is your feature request related to a problem? Please describe. I use the ssh remote format for many of my cloned github repos.

An example of this format is:

bash
git clone [email protected]:kefranabg/readme-md-generator.git

As you can see in this function below...

https://github.com/kefranabg/readme-md-generator/blob/f0370c8efe602bfc1e1334ea556214de4c1b0f04/src/project-infos.js#L76-L82

Where GITHUB_URL is defined as

https://github.com/kefranabg/readme-md-generator/blob/f0370c8efe602bfc1e1334ea556214de4c1b0f04/src/project-infos.js#L14

The check for if a local project is a github project clone only handles git-over-https.

Describe the solution you'd like An expansion to treat git-over-ssh on the github url as the same as the equivalent git-over-https

Describe alternatives you've considered Unsure.

Additional context ...

Source: kefranabg/readme-md-generator