From cdcb931ef0ae353d5f9e86fa6e8a8cd753b6a29f Mon Sep 17 00:00:00 2001 From: Issam KHADIRI Date: Sun, 12 Jun 2022 17:46:46 +0200 Subject: [PATCH] Update questionhelper.rst hello the example shows a warning (preg_match(): No ending delimiter'/' found). to solve it, we need to add the ``/`` at the end of the regex. --- components/console/helpers/questionhelper.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);