@energycap/components 0.46.14-highlighting-normalized-pattern.20260702-1458 → 0.46.14

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.
@@ -2441,7 +2441,8 @@ class HighlightTextPipe {
2441
2441
  const positionMap = [];
2442
2442
  let normalizedValue = '';
2443
2443
  for (let i = 0; i < value.length; i++) {
2444
- if (!value[i].match(stripRegex)) {
2444
+ stripRegex.lastIndex = 0;
2445
+ if (!stripRegex.test(value[i])) {
2445
2446
  positionMap.push(i);
2446
2447
  normalizedValue += value[i];
2447
2448
  }