perf: `Replacement.apply`

Avoid potentially expensive `e.replace` if it is not applicable.
1 file changed