Changeset 3375928
- Timestamp:
- 10/09/2025 05:37:45 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-businessdirectory/trunk/includes/mvc/language/Stemmer/Porteren.php
r2196655 r3375928 425 425 $c = self::$_regex_consonant; 426 426 427 return preg_match("# $c{2}$#", $str, $matches) && $matches[0]{0} == $matches[0]{1};427 return preg_match("#{$c}{2}$#", $str, $matches) && $matches[0][0] == $matches[0][1]; 428 428 } 429 429 … … 442 442 $v = self::$_regex_vowel; 443 443 444 $result = preg_match("#($c$v$c)$#", $str, $matches)445 && strlen($matches[1]) == 3446 && $matches[1]{2}!= 'w'447 && $matches[1]{2}!= 'x'448 && $matches[1]{2}!= 'y';444 $result = preg_match("#($c$v$c)$#", $str, $matches) 445 && strlen($matches[1]) == 3 446 && $matches[1][2] != 'w' 447 && $matches[1][2] != 'x' 448 && $matches[1][2] != 'y'; 449 449 450 450 return $result;
Note: See TracChangeset
for help on using the changeset viewer.