DevCase/tests
Ade Attwood fcaf425042 fix: infinite loop when using .* patterns
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
2024-05-29 17:33:47 +01:00
..
features fix: infinite loop when using .* patterns 2024-05-29 17:33:47 +01:00
features.rs test: add regex feature tests 2024-05-11 15:20:03 +01:00