Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development

This commit is contained in:
Jérôme Nadaud
2013-07-23 18:38:33 +02:00
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -102,11 +102,11 @@ class SearchCore
$string = preg_replace('/['.PREG_CLASS_SEARCH_EXCLUDE.']+/u', ' ', $string);
if ($indexation)
$string = preg_replace('/[._-]+/', '', $string);
$string = preg_replace('/[._-]+/', ' ', $string);
else
{
$string = preg_replace('/[._]+/', '', $string);
$string = ltrim(preg_replace('/([^ ])-/', '$1', ' '.$string));
$string = ltrim(preg_replace('/([^ ])-/', '$1 ', ' '.$string));
$string = preg_replace('/[._]+/', '', $string);
$string = preg_replace('/[^\s]-+/', '', $string);
}