pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.11k stars 473 forks source link

should.match takes regex, may have unintended behaviour if string contains escape characters #11

Closed mrtns closed 11 years ago

mrtns commented 13 years ago

Current workaround is to [regex]::escape the input string.

Failing test to be provided ;)

scottmuc commented 11 years ago

Can you add a test to this: https://github.com/pester/Pester/blob/master/Functions/Assertions/Match.Tests.ps1

I'm not sure what the test case is for this.

scottmuc commented 11 years ago

Closing this due to no further follow up