Using empty string instead of space.

This commit is contained in:
BDisp
2024-11-04 18:37:27 +00:00
parent 782325f6b7
commit e2f3b7b5e1

View File

@@ -82,7 +82,7 @@ public class AnsiEscapeSequenceRequest
if (!ansiRequest.Response.EndsWith (ansiRequest.Terminator [^1]))
{
char resp = string.IsNullOrEmpty (ansiRequest.Response) ? ' ' : ansiRequest.Response.Last ();
string resp = string.IsNullOrEmpty (ansiRequest.Response) ? "" : ansiRequest.Response.Last ().ToString ();
throw new InvalidOperationException ($"Terminator ends with '{resp}'\nand doesn't end with: '{ansiRequest.Terminator [^1]}'");
}