From 4fc68b88e7b6284c7c7e64fdc0ac3c6441b35c99 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 26 Aug 2014 16:38:54 -0700 Subject: [PATCH] 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 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e663e85044..c5dbf24d86 100644 --- a/README.md +++ b/README.md @@ -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: {