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 ee1914e commit 3a39933Copy full SHA for 3a39933
generators/app/index.js
@@ -55,13 +55,7 @@ module.exports = generators.Base.extend({
55
name: 'projectURL',
56
message: chalk.yellow('If you will be using Github Pages, use username.github.io\n') +
57
chalk.yellow('? ') + 'What will the URL for your project be?',
58
- validate: function (input) {
59
- if (input.startsWith('http')) {
60
- return true;
61
- }
62
-
63
- return 'URL must contain either HTTP or HTTPs';
64
- },
+ validate: i => i.startsWith('http') ? true : 'URL must contain either HTTP or HTTPs',
65
store: true
66
}, {
67
name: 'authorName',
0 commit comments