diff --git a/src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs b/src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs index c296c8501473a..b3eebcd7e381d 100644 --- a/src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs +++ b/src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs @@ -1446,7 +1446,7 @@ public async Task StackFrameGetValues(SessionId sessionId, MethodInfo me { if (asyncLocal["name"].Value().EndsWith("__this")) asyncLocal["name"] = "this"; - else if (asyncLocal["name"].Value().Contains("<")) + else if (asyncLocal["name"].Value().Contains('<')) asyncLocal["name"] = Regex.Match(asyncLocal["name"].Value(), @"\<([^)]*)\>").Groups[1].Value; } return asyncLocals;