diff --git a/.jshintrc b/.jshintrc index 8d9e428d..954c3632 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,3 +1,4 @@ { - "expr": true + "expr": true, + "quotmark": "single" } \ No newline at end of file diff --git a/lib/logger.js b/lib/logger.js index 2b68ac96..4dc9c656 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -33,7 +33,7 @@ logger.applyReplacements = function(output) { for (regexPattern in config.replace) { output = output.replace( - new RegExp(regexPattern, "g"), config.replace[regexPattern]); + new RegExp(regexPattern, 'g'), config.replace[regexPattern]); } return output; @@ -95,19 +95,19 @@ logger.registerHelpers_ = function() { }); handlebars.registerHelper('link', function() { - return 'http://github.com/' + this.options.user + "/" + this.options.repo + "/pull/" + this.options.number; + return 'http://github.com/' + this.options.user + '/' + this.options.repo + '/pull/' + this.options.number; }); handlebars.registerHelper('forwardedLink', function() { - return 'http://github.com/' + this.options.fwd + "/" + this.options.repo + "/pull/" + this.options.forwardedPull; + return 'http://github.com/' + this.options.fwd + '/' + this.options.repo + '/pull/' + this.options.forwardedPull; }); handlebars.registerHelper('submittedLink', function() { - return 'http://github.com/' + this.options.submit + "/" + this.options.repo + "/pull/" + this.options.submittedPull; + return 'http://github.com/' + this.options.submit + '/' + this.options.repo + '/pull/' + this.options.submittedPull; }); handlebars.registerHelper('issueLink', function() { - return 'http://github.com/' + this.options.user + "/" + this.options.repo + "/issues/" + this.options.number; + return 'http://github.com/' + this.options.user + '/' + this.options.repo + '/issues/' + this.options.number; }); logger.registerStyles_();