Skip to content

QuestionHelper autocomplete with trailing backslashes triggers display error #24652

@ciaranmcnulty

Description

@ciaranmcnulty
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.10

Providing trailing backslashes in an autocomplete value seems to break the console formatting, when using QuestionHelper. I assume this is a result of faulty escaping around the highlighting:

$questionHelper = $this->getApplication()->getHelperSet()->get('question');
$question = new Question('Enter namespace:');
$question->setAutocompleterValues(['Foo\\', 'Bar\\']);
$namespace = $questionHelper->ask($input, $output, $question);

screen shot 2017-10-21 at 08 40 41

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions