Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenmass committed Mar 15, 2017
1 parent 2eab44c commit 548f978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prompt/LimitedInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const LimitedInput = function (...args) {
if (!this.opt.maxLength) {
this.throwParamError('maxLength');
}
this.originalMeassage = this.opt.message;
this.originalMessage = this.opt.message;
this.spacer = new Array(this.opt.maxLength).fill('-').join('');

if (this.opt.leadingLabel) {
Expand All @@ -27,7 +27,7 @@ const LimitedInput = function (...args) {
util.inherits(LimitedInput, inquirer.prompt.prompts.input);

LimitedInput.prototype.updateMessage = function () {
this.opt.message = `${this.originalMeassage}
this.opt.message = `${this.originalMessage}
[${this.spacer}] ${this.remainingChar()} remaining chars
${this.leadingLabel}`;
};
Expand Down

0 comments on commit 548f978

Please sign in to comment.