Skip to content

Check for git url in any format. https / sss / git

License

Notifications You must be signed in to change notification settings

perkinsjr/regex-git

Repository files navigation

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

About

Check for git url in any format. https / sss / git

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published