We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f205cd commit 063d990Copy full SHA for 063d990
filter/index.js
@@ -4,17 +4,14 @@ var util = require('util');
4
var path = require('path');
5
var yeoman = require('yeoman-generator');
6
var ScriptBase = require('../script-base.js');
7
-
8
-function capitalize(string) {
9
- return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
10
-}
+var nextUtils = require('../util.js');
11
12
var FilterGenerator = module.exports = function(args, options) {
13
ScriptBase.apply(this, arguments);
14
15
this.moduleName = args[0];
16
this.name = args[1];
17
- this.capitalizedName = capitalize(this.name);
+ this.capitalizedName = nextUtils.capitalize(this.name);
18
};
19
20
util.inherits(FilterGenerator, ScriptBase);
0 commit comments