@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.
- package/esm2020/src/app/shared/pipes/highlight.pipe.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +2 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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;
|