Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve IndexOf handling in regex source generator / compiler (#77925)
This PR does a few related things: 1. Consolidates _most_ (but not all) use of IndexOf variants into a single helper that can then be used from multiple locations to avoid code duplication and make it easier for us to extend in the future with additional IndexOf variants. 2. Stops using IndexOf when doing lazy backtracking in an optional. 3. Special-cases "any" repeaters to not do any character checking. 4. Adds use of IndexOf (via the new helper) into repeaters.
- Loading branch information