Skip to content

Commit

Permalink
Fix config comment replace regex not to be greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Feb 13, 2015
1 parent b2994d5 commit 5a1e347
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/config/project/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {

// remove all comments from config files (.variable)
variables : {
in : /\/\*[\s\S]+\/\* End Config \*\//m,
in : /\/\*[\s\S]+?\/\* End Config \*\//m,
out : '',
},

Expand Down
2 changes: 1 addition & 1 deletion tasks/docs/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ module.exports = function () {
lessPath = util.replaceExtension(file.path, '.less');
lessPath = lessPath.replace(source.site, source.definitions);
}
else if(isDefinition) {
else {
console.log('Change detected in definition');
lessPath = file.path;
}
Expand Down
2 changes: 1 addition & 1 deletion tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = function(callback) {
lessPath = util.replaceExtension(file.path, '.less');
lessPath = lessPath.replace(source.site, source.definitions);
}
else if(isDefinition) {
else {
console.log('Change detected in definition');
lessPath = file.path;
}
Expand Down

0 comments on commit 5a1e347

Please sign in to comment.