Skip to content

Commit

Permalink
change a 'makeName' method for improving performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
tasogarepg committed Aug 25, 2012
1 parent ddd012a commit 969741b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/node-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ Pages.prototype.loadFileSync = function(srcPath) {
};

Pages.prototype.makeName = function(filePath) {
return filePath && filePath.
replace(/[\/\\]/g, '__').
replace(/[:]/g, '-');
return filePath && filePath.replace(/[\/\\:]/g, '__');
};

Pages.prototype.makeDstPath = function(workDir, name) {
Expand Down

0 comments on commit 969741b

Please sign in to comment.