Skip to content

Commit

Permalink
fixes Luismahou#50 to fix jshint errors for missing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
dherbst committed May 16, 2015
1 parent 41573e4 commit 41ec9ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/hashresHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ exports.hashAndSub = function(grunt, options) {
grunt.log.write(src + ' ').ok(renamed);
});

// sort by length
// It is very useful when we have bar.js and foo-bar.js
// sort by length
// It is very useful when we have bar.js and foo-bar.js
// @crodas
var files = [];
for (var name in nameToHashedName) {
Expand All @@ -77,12 +77,12 @@ exports.hashAndSub = function(grunt, options) {
grunt.file.expand(f.dest).forEach(function(f) {
var destContents = fs.readFileSync(f, encoding);
files.forEach(function(value) {
grunt.log.debug('Substituting ' + value[0] + ' by ' + value[1])
grunt.log.debug('Substituting ' + value[0] + ' by ' + value[1]);
destContents = destContents.replace(new RegExp(utils.preg_quote(value[0])+"(\\?[0-9a-z]+)?", "g"), value[1]);

grunt.log.debug('Substituting ' + nameToNameSearch[value[0]] + ' by ' + value[1])
grunt.log.debug('Substituting ' + nameToNameSearch[value[0]] + ' by ' + value[1]);
destContents = destContents.replace(
new RegExp(nameToNameSearch[value[0]], "g"),
new RegExp(nameToNameSearch[value[0]], "g"),
value[1]
);
});
Expand Down

0 comments on commit 41ec9ad

Please sign in to comment.