Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.currentChoices.getChoice = choiceIndex => {
let choice = Choices.prototype.getChoice.call(
this.currentChoices,
choiceIndex
);
return {
value: stripAnsi(choice.value),
name: stripAnsi(choice.name),
short: stripAnsi(choice.name)
};
};
});
this.currentChoices.getChoice = (choiceIndex) => {
const choice = Choices.prototype.getChoice.call(this.currentChoices, choiceIndex);
return {
value: stripAnsi(choice.value),
name: stripAnsi(choice.name),
short: stripAnsi(choice.name),
};
};
});