Skip to content

Commit 4d9fab4

Browse files
committed
Escape diagnostics
1 parent 1512aef commit 4d9fab4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Bot/Sharp/Diagnostics/DiagnosticsFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private string FormatName(CompilationDiagnostic diagnostic)
166166
return $"{GetSeverityEmoji(diagnostic.Severity)} {diagnostic.Id} ({location.Line + 1},{location.Character + 1})";
167167
}
168168

169-
private static string FormatValue(CompilationDiagnostic diagnostic) => diagnostic.Message;
169+
private static string FormatValue(CompilationDiagnostic diagnostic) => Format.Escape(diagnostic.Message);
170170

171171
private static string LimitLength(string value, int maxLength)
172172
{

0 commit comments

Comments
 (0)