Skip to content

Commit

Permalink
removed slash in valid path test for windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinjhin committed Oct 28, 2016
1 parent 2a0aa2a commit 9fca138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = generators.Base.extend({
if (path.isAbsolute(this.props.folder)) {
this.props.folder = path.relative(this.destinationPath(), this.props.folder);
}
var isValidPath = this.props.folder.indexOf('../') === -1;
var isValidPath = this.props.folder.indexOf('..') === -1;
if (!isValidPath) {
var error = new Error('Your project main folder ' + this.props.folder + ' is external ' +
'to the project folder. Please set to internal path.');
Expand Down

0 comments on commit 9fca138

Please sign in to comment.