Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 992 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 992 Bytes

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