When creating the transducer for a regex, after a match has finished, initImg was used to prevent the regex immediately matching again. This is not needed (after a single match, anything is accepted in replace).
Looks like a bad copy/paste/fix from replaceall where the case of an immediate second match after one match has ended needed special care.
When creating the transducer for a regex, after a match has finished, initImg was used to prevent the regex immediately matching again. This is not needed (after a single match, anything is accepted in replace).
Looks like a bad copy/paste/fix from replaceall where the case of an immediate second match after one match has ended needed special care.
Fixes #58