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

UTF-8 does not work #347

Open
applibs opened this issue Sep 23, 2023 · 0 comments
Open

UTF-8 does not work #347

applibs opened this issue Sep 23, 2023 · 0 comments

Comments

@applibs
Copy link

applibs commented Sep 23, 2023

When I use rule alpha_space with string like this "ěščřžýáí" validation resilt is false.
After I changed this line:
return preg_match('/^(['.self::$alpha_regex.'\s])+$/i', $value) > 0;
into:
return preg_match('/^(['.self::$alpha_regex.'\s])+$/ui', $value) > 0;

then it works as expected.

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