We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9af54 commit 1ddbb20Copy full SHA for 1ddbb20
Samples/KerbDumpCore/MessageTreeView.cs
@@ -144,12 +144,26 @@ item.OwnerItem is ToolStripItem parentItem &&
144
}
145
146
147
- if (!string.IsNullOrWhiteSpace(text) && text.StartsWith("Data = "))
+ if (!string.IsNullOrWhiteSpace(text))
148
{
149
- text = text["Data = ".Length..];
+ foreach (var prefix in LabelPrefixes)
150
+ {
151
+ if (text.StartsWith(prefix))
152
153
+ text = text[prefix.Length..];
154
+ break;
155
+ }
156
157
158
159
160
+ private static readonly IEnumerable<string> LabelPrefixes = new[]
161
162
+ "Data = ",
163
+ "Value = ",
164
+ "Cipher = "
165
+ };
166
+
167
private void OnClickDecodeAsAdWin2kPac(object sender, EventArgs e)
168
169
ParseNode(sender, out string text, out TreeNode parentNode);
0 commit comments