@sumaris-net/ngx-components 2.5.7 → 2.5.8-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1555,8 +1555,8 @@ class HighlightPipe {
1555
1555
  const cleanedSearchText = removeDiacritics(searchRegexp).toUpperCase();
1556
1556
  const index = removeDiacritics(value.toUpperCase()).indexOf(cleanedSearchText);
1557
1557
  if (index !== -1) {
1558
- return value.substring(0, index - 1) +
1559
- '<b>' + value.substring(index, cleanedSearchText.length) + '</b>' +
1558
+ return value.substring(0, index) +
1559
+ '<b>' + value.substring(index, index + cleanedSearchText.length) + '</b>' +
1560
1560
  value.substring(index + cleanedSearchText.length);
1561
1561
  }
1562
1562
  return value;