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

Can't use "pipe" in Validators pattern #206

Open
TomPavelec opened this issue Dec 2, 2019 · 1 comment
Open

Can't use "pipe" in Validators pattern #206

TomPavelec opened this issue Dec 2, 2019 · 1 comment

Comments

@TomPavelec
Copy link

TomPavelec commented Dec 2, 2019

Version: v3.0.1

Bug Description

Can not use "pipe" ("|") character in Validators pattern

Steps To Reproduce

Validators::is('a', 'pattern:(a|b)');
// E_WARNING: preg_match(): Compilation failed: missing closing parenthesis at offset 1

Expected Behavior

Validators::is('a', 'pattern:(a|b)');
// should return true
@dg
Copy link
Member

dg commented Dec 3, 2019

Related #14 #15 #31

It is really hard to fix.

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

2 participants