Skip to content

Commit cdcb931

Browse files
issamkhadiri1989javiereguiluz
authored andcommitted
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 f0145cf commit cdcb931

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
@@ -410,7 +410,7 @@ invalid answer and will only be able to proceed if their input is valid.
410410

411411
$question = new Question('Please enter the name of the bundle', 'AcmeDemoBundle');
412412
$validation = Validation::createCallable(new Regex([
413-
'pattern' => '/^[a-zA-Z]+Bundle$',
413+
'pattern' => '/^[a-zA-Z]+Bundle$/',
414414
'message' => 'The name of the bundle should be suffixed with \'Bundle\'',
415415
]));
416416
$question->setValidator($validation);

0 commit comments

Comments
 (0)