Skip to content

Can't use numeric characters in autocomplete type #112

@SebastienBelmon

Description

@SebastienBelmon

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 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions