knom / vsts-regex-tasks

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

Replace is case insenstitive #34

Open dfindlay opened 1 year ago

dfindlay commented 1 year ago

The RegEx replace performed is case insenstitive, since it uses the PowerShell Replace operator which by default is case insensitive (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.3#replacement-with-regular-expressions). This limits the usability of this task to situations where case is irrelevant only.

There is another operator "creplace" in Powershell which is cases sensitive. Would be good to at least have the option to use this to do case sensitive replacements.

ALiwoto commented 1 year ago

I totally agree with having the option to do case- sensitive/insensitive comparision.