Skip to content
Check for git url in any format. https / sss / git
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
test.js

README.md

Build Status tippin.me Donate.Paypal Donate.Coffee Donate.Patreon

Regex git

Regular expression for matching any git based url

Install

$ npm install --save regex-git

Usage

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);

License

MIT © James Perkins

You can’t perform that action at this time.