knom / vsts-regex-tasks

VSTS Regex Build/Release Tasks
MIT License
6 stars 8 forks source link

Augment DEBUG logging and allow an empty string as a replacement value #4

Closed loweva closed 6 years ago

loweva commented 7 years ago

The existing debug logging has been very helpful. But would it be possible to expand it to include information about the lines replaced (e.g. 'old line' -> 'new line') If that is not possible, then specifying the number of tokens replaced in each file would be a good alternative.

Also, I would like to be able to enter an empty string as a regex replacement, but I do not see a way to do that currently.

Thank you in advance!

knom commented 6 years ago

hi there, unfortunately that's not possible because of the underlying APIs used to replace the text.. They just don't expose it..

Thanks.

knom commented 6 years ago

I've added support for empty strings as replacement value now in v 3.1.0! The debugging still doesn't work unfortunately back to Powershell REPLACE functionality..