aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Stemmer.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/NXP/Stemmer.php')
-rw-r--r--src/NXP/Stemmer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/Stemmer.php b/src/NXP/Stemmer.php
index 73b993c..09b24f7 100644
--- a/src/NXP/Stemmer.php
+++ b/src/NXP/Stemmer.php
@@ -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;
}