You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log.send(
new LogData(
this.baseData,
`${this.tryGetPingMatterLinkedToUser.name}.ts`,
userId,
Level.Warn,
`Dms client matter code: ${filedDocument.DmsClientMatterCode()} does not exist in Ping`
)
);
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?
The text was updated successfully, but these errors were encountered:
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 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?The text was updated successfully, but these errors were encountered: