Skip to content

Commit

Permalink
Update tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDic…
Browse files Browse the repository at this point in the history
…tionary.cs


Adjust token bodyRegexSanitizer to eliminate required trailing $ or &.

Co-authored-by: JoshLove-msft <[email protected]>
  • Loading branch information
scbedd and JoshLove-msft authored May 2, 2024
1 parent 89a0dd6 commit 0792b7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public SanitizerDictionary() {
"AZSDK3002"
),
new RegisteredSanitizer(
new BodyRegexSanitizer(regex: "token=(?<token>[^&\\\"]+)($|&)", groupForReplace: "token"),
new BodyRegexSanitizer(regex: "token=(?<token>[^&\\\"]+)", groupForReplace: "token"),
"AZSDK3003"
),
new RegisteredSanitizer(
Expand Down

0 comments on commit 0792b7a

Please sign in to comment.