Skip to content

Commit

Permalink
Fix: app/index.js: Duplicate project name #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sotayamashita committed Jun 27, 2015
1 parent 6d71110 commit ddd7d19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var npmName = require('npm-name')
var _s = require('underscore.string')

var extractThemeName = function (appname) {
var match = appname.match(/^psg-theme-(.+)/)
var match = appname.match(/^psg theme (.+)/)

if (match && match.length === 2) {
return match[1].toLowerCase()
Expand Down Expand Up @@ -38,7 +38,9 @@ module.exports = yeoman.generators.Base.extend({
prompting: {
askFor: function () {
var done = this.async()
console.log(this.appname)
var themeName = extractThemeName(this.appname)
console.log(themeName)

this.log(yosay(
'Welcome to the mathematical ' + chalk.red('PostCSS Style Guide Theme') + ' generator!'
Expand Down

0 comments on commit ddd7d19

Please sign in to comment.