diff --git a/handlebars/helpers.js b/handlebars/helpers.js index 72cfb4a..86d65ef 100644 --- a/handlebars/helpers.js +++ b/handlebars/helpers.js @@ -226,7 +226,7 @@ module.exports = { var data = Handlebars.createFrame(options.data || {}) // Build url to correct version and file in github if (url && url.match(/github.com/)) { - data.url = url.replace(/\.git$/, '') + '/blob/v' + version + '/' + relativePath + data.url = url.replace(/^git\+/, '').replace(/\.git$/, '') + '/blob/v' + version + '/' + relativePath } data['package'] = packageJson }