Open icco opened 3 years ago
Adding some context here: Current behavior's limitation to single-line changes is because ruplacer
's logic is very baked against processing individual lines at the moment. For reference in main
ATOW, see:
I don't see a technical reason that ruplacer
couldn't do multi-line edits, but it would involve some major shifts to ruplacer
's UX.
I have the following in a lot of files:
I want to replace all with
logger.error(error)
.I tried lots of different things, but I expected
ruplacer 'Log\.send\((?s:.)*\);' 'logger.error(error)' -t ts
to work, but it does not. Any thoughts?