mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
AbstractJsonPartialMatcher: Regex Value is Uppercased when IgnoreCase is set to true #604
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @epDugas on GitHub (Jun 8, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
AbstractJsonPartialMatcher
When IgnoreCase is true, and Regex is true, the value used as a regex is upper-cased.
This changes a given regex and causes a non-match. Example:
"^\d+$" is changed to "^\D+$"
Expected behavior:
Expect the given regex to be used.
Test to reproduce
Other related info
Test to Demonstrate:
@StefH commented on GitHub (Jun 8, 2024):
@epDugas Thanks for this finding.
A fix will be released shortly.
@StefH commented on GitHub (Jun 8, 2024):
86f8877039