Skip to content

Commit 23f1999

Browse files
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.
1 parent 0544743 commit 23f1999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ invalid answer and will only be able to proceed if their input is valid.
401401

402402
$question = new Question('Please enter the name of the bundle', 'AcmeDemoBundle');
403403
$validation = Validation::createCallable(new Regex([
404-
'pattern' => '/^[a-zA-Z]+Bundle$',
404+
'pattern' => '/^[a-zA-Z]+Bundle$/',
405405
'message' => 'The name of the bundle should be suffixed with \'Bundle\'',
406406
]));
407407
$question->setValidator($validation);

0 commit comments

Comments
 (0)