bricks-cli
Version:
Command line tool for developing ambitious ember.js apps
10 lines (8 loc) • 317 B
JavaScript
;
module.exports = function(baseURL) {
if (typeof baseURL !== 'string') { return; }
// Makes sure it starts and ends with a slash
if (baseURL[0] !== '/') { baseURL = '/' + baseURL; }
if (baseURL.length > 1 && baseURL[baseURL.length - 1] !== '/') { baseURL = baseURL + '/'; }
return baseURL;
};