Skip to content

Commit ecfdb21

Browse files
author
danielneri
committed
Update index.js
1 parent 43978f5 commit ecfdb21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

controller/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ var Generator = module.exports = function Generator() {
88

99
// if the controller name is suffixed with ctrl, remove the suffix
1010
// if the controller name is just "ctrl," don't append/remove "ctrl"
11-
if (this.name && this.name.toLowerCase() !== 'ctrl' && this.name.substr(-4).toLowerCase() === 'ctrl') {
12-
this.name = this.name.slice(0, -4);
13-
}
11+
// if (this.name && this.name.toLowerCase() !== 'ctrl' && this.name.substr(-4).toLowerCase() === 'ctrl') {
12+
// this.name = this.name.slice(0, -4);
13+
// }
1414
};
1515

1616
util.inherits(Generator, ScriptBase);

0 commit comments

Comments
 (0)