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

Does not work Phalcon\Validation\Validator\Alpha #11386

Closed
jack-theripper opened this issue Feb 8, 2016 · 2 comments
Closed

Does not work Phalcon\Validation\Validator\Alpha #11386

jack-theripper opened this issue Feb 8, 2016 · 2 comments
Assignees
Labels
bug A bug report status: medium Medium
Milestone

Comments

@jack-theripper
Copy link

Check for alphabetic character for russian language.

Validator uses:

if !ctype_alpha(value) {

but it does not work with the Russian locale, in php big problem with setlocale on different operating systems.

how to change the condition in the code validator ?

For example

if ((bool) preg_match('/[^[:alpha:]]/imu', $value)) {

// Field :field must contain only letters

} else {
//
}
@sergeyklay
Copy link
Contributor

sergeyklay commented Feb 8, 2016

Could you please send a PR with this to the 2.1.x branch?

@sergeyklay
Copy link
Contributor

Fixed in 2.1.x branch

@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

3 participants