@annalib/anna-core 25.0.1 → 25.0.3

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.
@@ -2604,9 +2604,11 @@ class AnnaFilterService {
2604
2604
  updatedStr = str.toLowerCase();
2605
2605
  updatedSearchStr = searchStr.toLowerCase();
2606
2606
  }
2607
- while ((index = updatedStr.indexOf(updatedSearchStr, startIndex)) > -1) {
2607
+ index = updatedStr.indexOf(updatedSearchStr, startIndex);
2608
+ while (index > -1) {
2608
2609
  indices.push(index);
2609
2610
  startIndex = index + searchStrLen;
2611
+ index = updatedStr.indexOf(updatedSearchStr, startIndex);
2610
2612
  }
2611
2613
  return indices;
2612
2614
  }