-
-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Labels
Description
Hello,
I'm having an issue which I suppose is a bug. I can't use digit characters in autocomplete type.
minimal example
const test = await prompt({
type: 'autocomplete',
name: 'test',
message: 'Which picture do you want to use ?',
choices: [
'100IPLEX_00829.JPG',
'100IPLEX_00830.JPG',
]
});
console.log(test);
Expecting behaviour
For example, I would like the user able to enter 830
as input, and the autocomplete
type prompt to propose 100IPLEX_00830.JPG
to him. But it seems the program does not allow user to use numeric characters while choices are actually strings (as required).
Thank you for your help, i'll try to investigate too. And thank you for this awesome package 😄
ganobrega and ericksepulveda