inline Date.now, remove redundant comment

This commit is contained in:
Leo Horie 2016-07-30 14:55:34 -04:00
parent 917d474804
commit 9bd0cd73fc
3 changed files with 22 additions and 27 deletions

View file

@ -74,7 +74,6 @@ module.exports = function(input, output, options) {
function fixCollisions(code) {
for (var variable in usedVariables) {
var collision = new RegExp("([^\\.])\\b" + variable + "\\b(?![\"'`])", "g")
// var collision = new RegExp("([^\\.])" + variable + "\\b(?![\"'`])", "g")
var exported = new RegExp("module\\.exports\\s*=\\s*" + variable)
if (collision.test(code) && !exported.test(code) && !globals[variable.match(/[^\.]+/)]) {
var fixed = variable + usedVariables[variable]++