@ascentgl/ads-ui 0.0.131 → 0.0.132
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.
|
@@ -3392,7 +3392,7 @@ class AdsSearchDropdownHighlighterPipe {
|
|
|
3392
3392
|
transform(optionValue, filter) {
|
|
3393
3393
|
if (filter) {
|
|
3394
3394
|
const value = typeof filter == 'string' ? filter : filter.value;
|
|
3395
|
-
const re = new RegExp(value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'igm');
|
|
3395
|
+
const re = new RegExp((value ?? '').replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'igm');
|
|
3396
3396
|
return optionValue.replace(re, '<span class="highlighted-text">$&</span>');
|
|
3397
3397
|
}
|
|
3398
3398
|
return optionValue;
|