This PR modifies replace_all
to avoid the infinite loop described in #936. In each iteration, replace_all
searches for needle
starting from the beginning of haystack
. If replacement
contains needle
, the result is an infinite loop. To prevent this from happening, replace_all
is should continue searching for needle
from the end of the previous replacement
.
https://github.com/geany/geany-plugins/pull/1128
(1 file)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.