aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Stemmer.php
diff options
context:
space:
mode:
authorVitaliy Klimin <vklimin@510710.com>2018-01-11 17:34:51 +0300
committerGitHub <noreply@github.com>2018-01-11 17:34:51 +0300
commit2d504dac47d00c15a4a21a5bfc4ef7070f2a0350 (patch)
treee42fd3eff72881ad25e2bf41ec431afca0a2ebd2 /src/NXP/Stemmer.php
parentb3d54cec21f90b151225f14f9ecd0ea2048ceec9 (diff)
Update Stemmer.php
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;
}