mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-09 04:37:25 +00:00
Previously, `replace` used `find_all` to find all of the positions to replace. But `find_all` finds all the *overlapping* instances of the needle, while `replace` assumed that the next position was always at least `needle.length()` away from the last one. This led to crashes like https://github.com/SerenityOS/jakt/issues/1159.
19 KiB
19 KiB