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

Blacklist not working on a cyrillic string #3

Open
ArCoLab opened this issue Oct 13, 2020 · 1 comment
Open

Blacklist not working on a cyrillic string #3

ArCoLab opened this issue Oct 13, 2020 · 1 comment

Comments

@ArCoLab
Copy link

ArCoLab commented Oct 13, 2020

[['header', 'description'], WordValidator::className(), 'blacklist' => ['слово', 'word']],
I get error message if text contains "word" - but "слово" not filtering
Need support UTF-8...

@thyseus
Copy link
Owner

thyseus commented Oct 14, 2020

Hey @ArCoLab - thanks for choosing my small extension.

Could you please try if setting (*UTF8) in line 244 (https://github.com/thyseus/yii2-word-validator/blob/master/WordValidator.php#L244) works for you like describe in https://stackoverflow.com/a/9473867 ?

If it does, i will fix it and release the extension i a newer version.
Thanks a lot !

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