Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
docs(README): Removed unnecessary string replacements
Browse files Browse the repository at this point in the history
If `.html` is removed from the end only to be added to the end, there's no reason to touch it. Also, `template` + `/` is the same as `template/`.

I haven't tested this, but I see absolutely no reason why this code isn't the same functionally.

Closes #2635
  • Loading branch information
RichardLitt authored and chrisirhc committed Oct 1, 2014
1 parent ef09517 commit 4fc68b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ html2js: {
base: '.',
module: 'ui-templates',
rename: function (modulePath) {
var moduleName = modulePath.replace('app/views/partials/ui-bootstrap-tpls/', '').replace('.html', '');
return 'template' + '/' + moduleName + '.html';
var moduleName = modulePath.replace('app/views/partials/ui-bootstrap-tpls/', '');
return 'template/' + moduleName;
}
},
main: {
Expand Down

0 comments on commit 4fc68b8

Please sign in to comment.