Skip to content

Commit

Permalink
fix: add bind(this) to save context in inter_requireLetterAndNumber f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
slavik-lvovsky committed Jun 23, 2021
1 parent 85ef396 commit 665916a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/generator-foodq/generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ module.exports = class extends Generator {
name: "password",
message: "GitHub password",
mask: "*",
validate: this._requireLetterAndNumber,
validate: this._requireLetterAndNumber.bind(this),
when: (response) => {
if (_.isNil(this._getOption("password"))) {
return this._getAnswer("email", response) !== "root";
Expand Down

0 comments on commit 665916a

Please sign in to comment.