Summary: When we are using `.*` patterns, this causes an infinite loop. What happens is we are adding text to the end and then replacing that. Its only when we are matching the end of the output string. We can detect this when the starting point is the same as the end point and the match is "" (an empty string). If we hit this condition we can get out and return the output that has been replaced. Test Plan: Test in CI |
||
|---|---|---|
| .. | ||
| features | ||
| features.rs | ||