We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0145cf commit cdcb931Copy full SHA for cdcb931
components/console/helpers/questionhelper.rst
@@ -410,7 +410,7 @@ invalid answer and will only be able to proceed if their input is valid.
410
411
$question = new Question('Please enter the name of the bundle', 'AcmeDemoBundle');
412
$validation = Validation::createCallable(new Regex([
413
- 'pattern' => '/^[a-zA-Z]+Bundle$',
+ 'pattern' => '/^[a-zA-Z]+Bundle$/',
414
'message' => 'The name of the bundle should be suffixed with \'Bundle\'',
415
]));
416
$question->setValidator($validation);
0 commit comments