Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline character in rules regex #10

Open
yuenrsc opened this issue Jan 4, 2018 · 0 comments
Open

pipeline character in rules regex #10

yuenrsc opened this issue Jan 4, 2018 · 0 comments

Comments

@yuenrsc
Copy link

yuenrsc commented Jan 4, 2018

using pipeline character ( | ) in rules regex validation will break the rules, following Laravel 5.5 doc using array instead of one line is not working

Eg.

this will break:
$form->text('test')->rules('required|regex:/^(AB|CD){2}[0-9]{4}$/');

this does not work:
$form->text('test')->rules(array('required', 'regex:/^(AB|CD){2}[0-9]{4}$/'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant