diff --git a/components/console/helpers/questionhelper.rst b/components/console/helpers/questionhelper.rst index 8ba4c5ee2de..a25c638d58d 100644 --- a/components/console/helpers/questionhelper.rst +++ b/components/console/helpers/questionhelper.rst @@ -410,7 +410,7 @@ invalid answer and will only be able to proceed if their input is valid. $question = new Question('Please enter the name of the bundle', 'AcmeDemoBundle'); $validation = Validation::createCallable(new Regex([ - 'pattern' => '/^[a-zA-Z]+Bundle$', + 'pattern' => '/^[a-zA-Z]+Bundle$/', 'message' => 'The name of the bundle should be suffixed with \'Bundle\'', ])); $question->setValidator($validation);