Project

General

Profile

Actions

Bug #24171

closed

Word split is not working with non-latin letters

Added by Myroslav Holyak over 13 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-11-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

We use utf-8 for russian and ukrainian letters. Word splitting and highlight (in search results) is not working in such case.

In pi/class.tx_indexedsearch.php:markupSWpartsOfString we have

// Split and combine:
$parts = preg_split('/'.$regExString.'/i', ' '.$str.' ', 20000, PREG_SPLIT_DELIM_CAPTURE);

i think we should add one regexp option to that splitting (it fixes such wrong behaviour)

// Split and combine:
$parts = preg_split('/'.$regExString.'/iu', ' '.$str.' ', 20000, PREG_SPLIT_DELIM_CAPTURE);

(issue imported from #M16525)

Actions

Also available in: Atom PDF