UNPKG

ember-cli

Version:

Command line tool for developing ambitious ember.js apps

9 lines (7 loc) 291 B
'use strict'; // Detect if the string refers to a remote git repo. // Proably a bit janky, but borrowed from Bower, // so it's at least a Known Trick. module.exports = function(str){ return (/^git(\+(ssh|https?))?:\/\//i).test(str) || (/\.git\/?$/i).test(str) || (/^git@/i).test(str); };