diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs index d715f2fcce8..def1eb0e6c9 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs @@ -101,12 +101,12 @@ public SanitizerDictionary() { "ACS Identity leverages these strings to store identity information." ), new RegisteredSanitizer( - new GeneralRegexSanitizer(regex: "(?:[?&](sig)=)(?[^&\\\"\\s\\n,\\\\]*)", groupForReplace: "secret"), + new GeneralRegexSanitizer(regex: "(?:[?&](sig)=)(?[^&\\\"\\s\\n,\\\\]+)", groupForReplace: "secret"), "AZSDK1007", "Common SAS URL Sanitizer. Applies to all headers, URIs, and text bodies." ), new RegisteredSanitizer( - new GeneralRegexSanitizer(regex: "token=(?[^&\\\"\\s\\n,\\\\])", groupForReplace: "token"), + new GeneralRegexSanitizer(regex: "token=(?[^&\\\"\\s\\n,\\\\]+)", groupForReplace: "token"), "AZSDK1008" ), #endregion @@ -254,31 +254,31 @@ public SanitizerDictionary() { "AZSDK3004" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?<=).*?(?:)(?.*)(?:)", groupForReplace: "group", value: BASE64ZERO), + new BodyRegexSanitizer(regex: "(?<=).+?(?:)(?.+)(?:)", groupForReplace: "group", value: BASE64ZERO), "AZSDK3005" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?<=).*?(?:)(?.*)(?:)", groupForReplace: "group", value: EMPTYGUID), + new BodyRegexSanitizer(regex: "(?<=).+?(?:)(?.+)(?:)", groupForReplace: "group", value: EMPTYGUID), "AZSDK3006" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?<=).*?(?:)(?.*)(?:)", groupForReplace: "group", value: EMPTYGUID), + new BodyRegexSanitizer(regex: "(?<=).+?(?:)(?.+)(?:)", groupForReplace: "group", value: EMPTYGUID), "AZSDK3007" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?:Password=)(?.*?)(?:;)", groupForReplace: "pwd"), + new BodyRegexSanitizer(regex: "(?:Password=)(?.+?)(?:;)", groupForReplace: "pwd"), "AZSDK3008" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?:User ID=)(?.*?)(?:;)", groupForReplace: "id"), + new BodyRegexSanitizer(regex: "(?:User ID=)(?.+?)(?:;)", groupForReplace: "id"), "AZSDK3009" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?:)(?.*)(?:)", groupForReplace: "key"), + new BodyRegexSanitizer(regex: "(?:)(?.+)(?:)", groupForReplace: "key"), "AZSDK3010" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(?:)(?.*)(?:)", groupForReplace: "key"), + new BodyRegexSanitizer(regex: "(?:)(?.+)(?:)", groupForReplace: "key"), "AZSDK3011" ), new RegisteredSanitizer(