Skip to content

Commit 4e85cf1

Browse files
committed
replacing from regex to normal string replace
1 parent ac7cb5a commit 4e85cf1

File tree

1 file changed

+2
-2
lines changed
  • cybersource-rest-auth-netstandard/AuthenticationSdk/AuthenticationSdk/util

1 file changed

+2
-2
lines changed

cybersource-rest-auth-netstandard/AuthenticationSdk/AuthenticationSdk/util/LogUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public string MaskSensitiveData(string str)
6464
foreach (Match match in matches)
6565
{
6666
String strr = match.ToString();
67-
strr = Regex.Replace(strr, "\\s*[s/-]*", "");
68-
67+
strr = strr.Replace(" ", "");
68+
strr = strr.Replace("-", "");
6969
//replace original value in str with match
7070
str = str.Replace(match.ToString(), strr);
7171
}

0 commit comments

Comments
 (0)