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

Commit 4fc68b8

Browse files
RichardLittchrisirhc
authored andcommitted
docs(README): Removed unnecessary string replacements
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
1 parent ef09517 commit 4fc68b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ html2js: {
137137
base: '.',
138138
module: 'ui-templates',
139139
rename: function (modulePath) {
140-
var moduleName = modulePath.replace('app/views/partials/ui-bootstrap-tpls/', '').replace('.html', '');
141-
return 'template' + '/' + moduleName + '.html';
140+
var moduleName = modulePath.replace('app/views/partials/ui-bootstrap-tpls/', '');
141+
return 'template/' + moduleName;
142142
}
143143
},
144144
main: {

0 commit comments

Comments
 (0)