Regular expression for matching any git based url
$ npm install --save regex-git
const regexGit = require('regex-git');
const https = 'https://github.com/perkinsjr/regex-git.git';
const git = 'git@github.com:perkinsjr/regex-git.git'
regexGit.test(https);
regexGit.test(git);
MIT © James Perkins