balena-io-modules / scrutinizer

Extract a git repository's metadata relying on open source conventions
Apache License 2.0
8 stars 0 forks source link

Improve the regex that parses remote urls #18

Open dimitrisnl opened 5 years ago

dimitrisnl commented 5 years ago

https://github.com/balena-io-modules/scrutinizer/blob/3689b4d2bf0ea9acd0d4225019239c48926f0f42/lib/backends/github.js#L72

If the repository is in the following format

owner/project.com.git`

parsedUrl will be set to null, and the next lines will throw an error.