Skip to content

Commit

Permalink
fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinspecker committed Jul 29, 2014
1 parent 5b54332 commit 255bd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genBase/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Generator.prototype.askForModuleName = function askForModuleName(params) {
this.module = props.module || this.options.module || this.options.options.module;
this.url = props.url || this.options.url;

if (this.url && (this.url.charAt(0) !== '/' || this.url.charAt(0) !== '\\')) {
if (this.url && (this.url.charAt(0) !== '/' && this.url.charAt(0) !== '\\')) {
this.url = '/' + this.url;
}

Expand Down

0 comments on commit 255bd37

Please sign in to comment.