Inquirer.js
Inquirer.js copied to clipboard
Color highlighting of selected options stop working if the choice name has two slashes.
When any of the choice names has a double slash like so:
inquirer.prompt([{
type: 'list',
name: 'name',
message: `msg`,
choices: [
{name: 'https://x.com', value:''https://x.com'},
{name: 'https://y.com', value:''https://y.com'}
]
}])
The selected option does not turn green.
inquirer.prompt([{
type: 'list',
name: 'name',
message: `msg`,
choices: [
{name: 'https://x.com', value:'https://x.com'},
{name: 'https://y.com', value:'https://y.com'}
]
}])
The example above highlighted the text as expected. After value from your example I removed one of the singlequotes as they are invalid.