Skip to content

Commit 4449493

Browse files
committed
minor #16869 [Console] Update questionhelper.rst (issamkhadiri1989)
This PR was submitted for the 6.0 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Console] 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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- cdcb931 Update questionhelper.rst
2 parents f0145cf + cdcb931 commit 4449493

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)