Update Stemmer.php
This commit is contained in:
parent
b3d54cec21
commit
2d504dac47
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class Stemmer
|
|||
$prefix = mb_substr($word, 0, $region, 'UTF-8');
|
||||
$ending = mb_substr($word, mb_strlen($prefix, 'UTF-8'), null, 'UTF-8');
|
||||
if (is_array($regex)) {
|
||||
if (preg_match('/.+[а|я]' . $regex[0] . '/ui', $ending)) {
|
||||
if (preg_match('/.+[ая]' . $regex[0] . '/ui', $ending)) {
|
||||
$word = $prefix . preg_replace('/' . $regex[0] . '/ui', '', $ending);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue