facebookincubator / fastmod

A fast partial replacement for the codemod tool
Apache License 2.0
1.66k stars 41 forks source link

Replacement string not allowing newlines \n #31

Closed PeterTheobald closed 3 years ago

PeterTheobald commented 3 years ago

I am trying to do a multiline substitution. -m works for matching, but \n in the replacement string is being inserted as literally backslash-n.

swolchok commented 3 years ago

Please see this previous issue: https://github.com/facebookincubator/fastmod/issues/13#issuecomment-499592584